Changeset 657
- Timestamp:
- 24/01/05 22:44:06 (7 years ago)
- Files:
-
- trunk/ChangeLog (modified) (1 diff, 1 prop)
- trunk/node/node.d/squid_cache.in (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
- Property cvs2svn:cvs-rev changed from 1.270 to 1.271
r652 r657 15 15 (Deb#291854). 16 16 * Plugins: New plugin generic/perdition by Micah Anderson (Deb#291855). 17 * Plugins: Plugin generic/squid_cache now handles multiple caches 18 (Deb#288579). 17 19 18 20 munin (1.3.0) trunk/node/node.d/squid_cache.in
- Property cvs2svn:cvs-rev changed from 1.4 to 1.5
r432 r657 33 33 # 34 34 # $Log$ 35 # Revision 1.5 2005/01/24 21:44:06 jimmyo 36 # Plugin generic/squid_cache now handles multiple caches (Deb#288579). 37 # 35 38 # Revision 1.4 2004/11/16 20:18:09 jimmyo 36 39 # License cleanups. … … 147 150 $cachemgr->syswrite($request, length($request)); 148 151 my @lines = $cachemgr->getlines(); 152 my %outs = ('Maximum' => 0, 'Current' => 0); 149 153 for(my $i = 0; $i <= $#lines; $i++) { 150 154 if($lines[$i] =~ /$target\s+(\d+)/) { 151 print "$1.value $2\n";155 $outs{$1} += $2; 152 156 } 157 } 158 foreach my $k (keys %outs) { 159 print "$k.value $outs{$k}\n"; 153 160 } 154 161 }
