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

Comparing projects/cms/source/reports/rrdgraphing/graph.pl (file contents):
Revision 1.15 by tdb, Thu Feb 10 17:35:58 2005 UTC vs.
Revision 1.16 by tdb, Thu Mar 31 20:49:33 2005 UTC

# Line 156 | Line 156 | foreach my $machine (@rrddirlist) {
156              push @data, "NONE:$1:free:free#CCCCFF:NONE:free memory";
157              push @data, "NONE:$1:total:total#0000FF:NONE:total memory\\n";
158              push @data, "NONE:$1:cache:cache#0000FF:NONE:cache memory\\n";
159 <            # calculate peruse - note that we only use 'free' if it's less than total
160 <            # (this is to avoid negative percentages :)
161 <            push @rawdata, "CDEF:peruse=total,free,total,LT,free,0,IF,-,total,/,100,*";
162 <            push @rawdata, "CDEF:percacuse=cache,total,LT,cache,0,IF,total,/,100,*";
159 >            # calculate peruse - note that we only use 'free' if it's
160 >            # less or equal to total (this is to avoid negative percentages :)
161 >            push @rawdata, "CDEF:peruse=total,free,total,LE,free,0,IF,-,total,/,100,*";
162 >            push @rawdata, "CDEF:percacuse=cache,total,LE,cache,0,IF,total,/,100,*";
163              # and add it to the graph
164              push @rawdata, "AREA:peruse#CCCCFF:% memory in use";
165              &addlegend(\@rawdata, "peruse");
# Line 194 | Line 194 | foreach my $machine (@rrddirlist) {
194              # although we need it to work out peruse...
195              push @data, "NONE:$1:free:free#CCCCFF:NONE:free swap";
196              push @data, "NONE:$1:total:total#0000FF:NONE:total swap\\n";
197 <            # calculate peruse - note that we only use 'free' if it's less than total
198 <            # (this is to avoid negative percentages :)
199 <            push @rawdata, "CDEF:peruse=total,free,total,LT,free,0,IF,-,total,/,100,*";
197 >            # calculate peruse - note that we only use 'free' if it's
198 >            # less or equal to total (this is to avoid negative percentages :)
199 >            push @rawdata, "CDEF:peruse=total,free,total,LE,free,0,IF,-,total,/,100,*";
200              # and add it to the graph
201              push @rawdata, "AREA:peruse#CCCCFF:% swap in use";
202              push @rawdata, "--upper-limit=100";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines