зеркало из https://github.com/mozilla/gecko-dev.git
match changes from startup test.
This commit is contained in:
Родитель
3b5600bbdb
Коммит
1305df405a
|
@ -39,6 +39,11 @@ die "No 'value' parameter supplied"
|
|||
die "No 'data' parameter supplied"
|
||||
unless $data;
|
||||
|
||||
# If file doesn't exist, try creating empty file.
|
||||
unless (-f "db/$tbox") {
|
||||
open(FILE, "> db/$tbox") || die "Can't create new file db/$tbox: $!";
|
||||
close(FILE);
|
||||
}
|
||||
# record data
|
||||
open(FILE, ">> db/$tbox") ||
|
||||
die "Can't open $tbox: $!";
|
||||
|
|
|
@ -40,7 +40,7 @@ sub print_machines {
|
|||
}
|
||||
|
||||
sub show_graph {
|
||||
die "$TBOX is not a valid machine name"
|
||||
die "$TBOX: no data file found"
|
||||
unless -e $DATAFILE;
|
||||
|
||||
my $PNGFILE = "/tmp/gnuplot.$$";
|
||||
|
|
Загрузка…
Ссылка в новой задаче