Code

Fixed/changes the memory graph in collection.cgi to work even if `page cache'
authorocto <octo>
Thu, 6 Apr 2006 06:03:30 +0000 (06:03 +0000)
committerocto <octo>
Thu, 6 Apr 2006 06:03:30 +0000 (06:03 +0000)
and/or `buffer cache' is undefined.

contrib/collection.cgi

index 63b15639a3ec14a534a0adf3580e101c1b19b5f8..51e187de6bf55ee4aef9fe7f5c1cc3391155fca1 100755 (executable)
@@ -303,8 +303,10 @@ our $GraphDefs;
                        'DEF:free_max={file}:free:MAX',
                        'DEF:buffers_max={file}:buffers:MAX',
                        'DEF:cached_max={file}:cached:MAX',
-                       'CDEF:free_cached_buffers_used=free_avg,cached_avg,+,buffers_avg,+,used_avg,+',
-                       'CDEF:cached_buffers_used=cached_avg,buffers_avg,+,used_avg,+',
+                       'CDEF:cached_avg_nn=cached_avg,UN,0,cached_avg,IF',
+                       'CDEF:buffers_avg_nn=buffers_avg,UN,0,buffers_avg,IF',
+                       'CDEF:free_cached_buffers_used=free_avg,cached_avg_nn,+,buffers_avg_nn,+,used_avg,+',
+                       'CDEF:cached_buffers_used=cached_avg,buffers_avg_nn,+,used_avg,+',
                        'CDEF:buffers_used=buffers_avg,used_avg,+',
                        "AREA:free_cached_buffers_used#$HalfGreen",
                        "AREA:cached_buffers_used#$HalfBlue",