From 3b8e20d05944483a0ce21f2dc5d05e32098cb508 Mon Sep 17 00:00:00 2001 From: Florian Hines Date: Mon, 7 Nov 2011 19:34:08 +0000 Subject: [PATCH] Fixes bug 887278. The disk usage graph will now be drawn correctly. Change-Id: I75cf87e409fefa701eea5019f2449757e55eba2f --- bin/swift-recon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/swift-recon b/bin/swift-recon index 68284a5df6..b5c1cc96d4 100755 --- a/bin/swift-recon +++ b/bin/swift-recon @@ -262,7 +262,7 @@ def disk_usage(hosts): lows.append(low) averages.append(average) for percent in stats[url]: - percents[percent] = percents.get(percent, 0) + 1 + percents[int(percent)] = percents.get(int(percent), 0) + 1 else: print "-> %s: Error. No drive info available." % url