projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b42a5d
)
Display the reserved memory too in node lists
author
Iustin Pop
<iustin@google.com>
Thu, 12 Mar 2009 19:54:41 +0000
(20:54 +0100)
committer
Iustin 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
patch
|
blob
|
history
diff --git
a/src/Node.hs
b/src/Node.hs
index
e153ee6
..
60230f0
100644
(file)
--- a/
src/Node.hs
+++ b/
src/Node.hs
@@
-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