From: Brian Warner Date: Thu, 7 Aug 2008 21:40:08 +0000 (-0700) Subject: munin/tahoe_overhead: don't emit non-sensicial numbers X-Git-Url: https://git.rkrishnan.org/provisioning?a=commitdiff_plain;h=8828fe87694e16ad7a7896153caed794102b996c;p=tahoe-lafs%2Ftahoe-lafs.git munin/tahoe_overhead: don't emit non-sensicial numbers --- diff --git a/misc/munin/tahoe_overhead b/misc/munin/tahoe_overhead index 0c0567c1..ba2e1ddf 100644 --- a/misc/munin/tahoe_overhead +++ b/misc/munin/tahoe_overhead @@ -52,10 +52,14 @@ expansion = float(N) / k ideal = expansion * deepsize["all"] overhead = (total - ideal) / ideal -print "overhead.value %f" % (100.0 * overhead) +if overhead > 0: + # until all the storage-servers come online, this number will be nonsense + print "overhead.value %f" % (100.0 * overhead) -effective_expansion = total / deepsize["all"] -print "effective_expansion.value %f" % effective_expansion + # same for this one + effective_expansion = total / deepsize["all"] + print "effective_expansion.value %f" % effective_expansion +# this value remains valid, though inactive_savings = (deepsize["all"] - deepsize["active"]) / deepsize["active"] print "inactive.value %f" % (100.0 * inactive_savings)