ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/reports/graphing/watch.pl
(Generate patch)

Comparing experimental/reports/graphing/watch.pl (file contents):
Revision 1.4 by tdb, Sun Mar 10 13:28:59 2002 UTC vs.
Revision 1.5 by tdb, Sun Mar 10 15:42:19 2002 UTC

# Line 338 | Line 338 | sub updaterrd() {
338      foreach my $dataitem (@data) {
339          if($dataitem =~ /^(\S+):\S+:\S+$/) {
340              # pull the values straight out of the xmlhash
341 <            $updateparams .= ":$xmlhash{$1}";
341 >            my($value) = $xmlhash{$1};
342 >            # if it's undefined we'll set it to 0
343 >            # this probably shouldn't happen, but it'd be best to handle it "nicely" :)
344 >            $value = "0" if not defined $value;
345 >            $updateparams .= ":$value";
346          }
347      }
348      # perform the update

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines