mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-11 06:43:54 +00:00
munin/tahoe_overhead: don't emit non-sensicial numbers
This commit is contained in:
parent
f7ad0d2f6f
commit
8828fe8769
@ -52,10 +52,14 @@ expansion = float(N) / k
|
|||||||
|
|
||||||
ideal = expansion * deepsize["all"]
|
ideal = expansion * deepsize["all"]
|
||||||
overhead = (total - ideal) / ideal
|
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"]
|
# same for this one
|
||||||
print "effective_expansion.value %f" % effective_expansion
|
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"]
|
inactive_savings = (deepsize["all"] - deepsize["active"]) / deepsize["active"]
|
||||||
print "inactive.value %f" % (100.0 * inactive_savings)
|
print "inactive.value %f" % (100.0 * inactive_savings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user