From 0640a617762342b159a8535cce8e0fc0d0786c3b Mon Sep 17 00:00:00 2001 From: gholt Date: Fri, 8 Feb 2013 20:19:48 +0000 Subject: [PATCH] Fixed some swift-recon typos Change-Id: Ibe4b59a90b82742b70b00353d22aedd972bbeb59 --- bin/swift-recon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/swift-recon b/bin/swift-recon index 6cc27fb040..5c82e1bfa4 100755 --- a/bin/swift-recon +++ b/bin/swift-recon @@ -309,7 +309,7 @@ class SwiftRecon(object): else: print "[%s] - No hosts returned valid data." % k if least_recent_url is not None: - host = urlparse(url).netloc + host = urlparse(least_recent_url).netloc if not least_recent_time: print 'Oldest completion was NEVER by %s.' % host else: @@ -320,7 +320,7 @@ class SwiftRecon(object): time.gmtime(least_recent_time)), elapsed, elapsed_unit, host) if most_recent_url is not None: - host = urlparse(url).netloc + host = urlparse(most_recent_url).netloc elapsed = time.time() - most_recent_time elapsed, elapsed_unit = seconds2timeunit(elapsed) print 'Most recent completion was %s (%d %s ago) by %s.' % ( @@ -364,7 +364,7 @@ class SwiftRecon(object): else: print "[replication_time] - No hosts returned valid data." if least_recent_url is not None: - host = urlparse(url).netloc + host = urlparse(least_recent_url).netloc if not least_recent_time: print 'Oldest completion was NEVER by %s.' % host else: @@ -375,7 +375,7 @@ class SwiftRecon(object): time.gmtime(least_recent_time)), elapsed, elapsed_unit, host) if most_recent_url is not None: - host = urlparse(url).netloc + host = urlparse(most_recent_url).netloc elapsed = time.time() - most_recent_time elapsed, elapsed_unit = seconds2timeunit(elapsed) print 'Most recent completion was %s (%d %s ago) by %s.' % (