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:
mcafee%netscape.com 2001-11-30 08:38:05 +00:00
parent 662226b765
commit 299232dd6d
2 changed files with 6 additions and 1 deletions

View File

@ -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: $!";

View File

@ -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.$$";