--- experimental/reports/graphing/watch.pl 2002/03/10 13:28:59 1.4 +++ experimental/reports/graphing/watch.pl 2002/03/10 15:42:19 1.5 @@ -8,7 +8,7 @@ # the i-scream server and collecting data. # # $Author: tdb $ -# $Id: watch.pl,v 1.4 2002/03/10 13:28:59 tdb Exp $ +# $Id: watch.pl,v 1.5 2002/03/10 15:42:19 tdb Exp $ #------------------------------------------------------------ ## TODO @@ -338,7 +338,11 @@ sub updaterrd() { foreach my $dataitem (@data) { if($dataitem =~ /^(\S+):\S+:\S+$/) { # pull the values straight out of the xmlhash - $updateparams .= ":$xmlhash{$1}"; + my($value) = $xmlhash{$1}; + # if it's undefined we'll set it to 0 + # this probably shouldn't happen, but it'd be best to handle it "nicely" :) + $value = "0" if not defined $value; + $updateparams .= ":$value"; } } # perform the update