Display the reserved memory too in node lists
authorIustin Pop <iustin@google.com>
Thu, 12 Mar 2009 19:54:41 +0000 (20:54 +0100)
committerIustin Pop <iustin@google.com>
Thu, 12 Mar 2009 19:54:41 +0000 (20:54 +0100)
This is useful and not easy to compute otherwise.

src/Node.hs

index e153ee6..60230f0 100644 (file)
@@ -212,8 +212,8 @@ list mname n t =
         dp = p_dsk t
         fn = failN1 t
     in
-      printf " %c %-*s %5d %5d %3d %3d %.5f %.5f"
+      printf " %c %-*s %5d %5d %5d %3d %3d %.5f %.5f"
                  (if fn then '*' else ' ')
-                 mname n (f_mem t) ((f_dsk t) `div` 1024)
+                 mname n (f_mem t) (maxRes t) ((f_dsk t) `div` 1024)
                  (length pl) (length sl)
                  mp dp