ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/generic/statgrab.pl
(Generate patch)

Comparing projects/cms/source/host/generic/statgrab.pl (file contents):
Revision 1.25 by pjm2, Mon Feb 5 17:05:22 2001 UTC vs.
Revision 1.26 by pjm2, Mon Feb 5 17:13:26 2001 UTC

# Line 144 | Line 144 | sub include_top() {
144      $top =~ /([^\s]+?)([MG]) real/;
145      my($real) = $1;
146      $real*=1024 if $2 eq "G";
147 <    &print_pair(0, "packet.memory.real", $real);
147 >    &print_pair(0, "packet.memory.total", $real);
148  
149      $top =~ /([^\s]+?)([MG]) free/;
150      my($free) = $1;
# Line 159 | Line 159 | sub include_top() {
159      $top =~ /([^\s]+?)([MG]) swap free/;
160      my($swap_free) = $1;
161      $swap_free*=1024 if $2 eq "G";
162 <    &print_pair(0, "packet.memory.swap_free", $swap_free);
162 >    &print_pair(0, "packet.swap.free", $swap_free);
163  
164      # AJ requested total swap instead of swap_in_use, so here we go!
165 <    &print_pair(0, "packet.memory.swap_total", $swap_free + $swap_in_use);
165 >    &print_pair(0, "packet.swap.total", $swap_free + $swap_in_use);
166   }
167  
168   # sub to get details of the machine's operating system.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines