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

Comparing experimental/reports/queuegraphing/watch.pl (file contents):
Revision 1.2 by tdb, Sun Oct 21 18:57:40 2001 UTC vs.
Revision 1.3 by tdb, Sun Oct 21 19:01:16 2001 UTC

# Line 101 | Line 101 | while(1) {
101              }
102              my($size) = $xmlhash{"packet.queue.attributes.queue$i"};
103              my($cmd);
104 +            # see if the queue has been removed
105              if($size eq "[deleted]") {
106 <                $cmd = "rm -f $hash\_$i.rrd $hash*.png";
106 >                $cmd = "rm -f $hash\_$i.rrd";
107 >                # are there any other rrd's left? if not, cleanup!
108                  my($rrdcount) = `ls | grep $hash\_\\*.rrd | wc -l`;
109                  if($rrdcount == 0) {
110 <                    $cmd = $cmd . " && rm -f $hash.def";
110 >                    $cmd = $cmd . " && rm -f $hash.def $hash*.png";
111                  }
112              }
113              else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines