From 2cf878a5feef5d71d3cc2dc9d59e7fecdf2c2804 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Mon, 9 Mar 2009 20:33:13 +0100 Subject: [PATCH] Show which nodes are not N+1 compliant in output This patch adds a '*' character to nodes which are not N+1 compliant to the output, to help with understanding pre- and post-changes cluster status. --- src/Node.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Node.hs b/src/Node.hs index 2e91bed60..7434dcab4 100644 --- a/src/Node.hs +++ b/src/Node.hs @@ -198,8 +198,10 @@ list n t = sl = slist t mp = p_mem t dp = p_dsk t + fn = failN1 t in - printf " %s(%d)\t%5d\t%5d\t%3d\t%3d\t%s\t%s\t%.5f\t%.5f" + printf " %c %s(%d)\t%5d\t%5d\t%3d\t%3d\t%s\t%s\t%.5f\t%.5f" + (if fn then '*' else ' ') n (idx t) (f_mem t) ((f_dsk t) `div` 1024) (length pl) (length sl) (commaJoin (map show pl)) -- GitLab