| # | 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 { | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |