match changes from startup test.
git-svn-id: svn://10.0.0.236/trunk@109352 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
662226b765
commit
299232dd6d
@ -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.$$";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user