lib/td/command/common.rb in td-0.10.5 vs lib/td/command/common.rb in td-0.10.6
- old
+ new
@@ -51,23 +51,23 @@
e = finish.to_i - start.to_i
elapsed = ''
if e >= 3600
elapsed << "#{e/3600}h "
e %= 3600
- elapsed << "% 2dm " % (e/60)
+ elapsed << "%2dm " % (e/60)
e %= 60
- elapsed << "% 2dsec" % e
+ elapsed << "%2dsec" % e
elsif e >= 60
- elapsed << "% 2dm " % (e/60)
+ elapsed << "%2dm " % (e/60)
e %= 60
- elapsed << "% 2dsec" % e
+ elapsed << "%2dsec" % e
else
- elapsed << "% 2dsec" % e
+ elapsed << "%2dsec" % e
end
else
elapsed = ''
end
- elapsed = "% 10s" % elapsed # right aligned
+ elapsed = "% 13s" % elapsed # right aligned
end
def get_database(client, db_name)
begin
return client.database(db_name)