diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-09-02 15:08:35 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-09-02 15:08:35 -0700 |
commit | 52779f2bce9e16b4c78f744d850609c7a389d651 (patch) | |
tree | d53ed074f54bf126c8c80d838c90f7890b0b74ca | |
parent | 1a5b8fb93bdd150b3e6525c1706e1ba0e34e15d9 (diff) | |
download | portage-52779f2bce9e16b4c78f744d850609c7a389d651.tar.gz portage-52779f2bce9e16b4c78f744d850609c7a389d651.tar.bz2 portage-52779f2bce9e16b4c78f744d850609c7a389d651.zip |
Fix whenago() to show times as integers instead of floats.v2.2_rc74
-rw-r--r-- | pym/_emerge/sync/old_tree_timestamp.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pym/_emerge/sync/old_tree_timestamp.py b/pym/_emerge/sync/old_tree_timestamp.py index df55a2b25..9b35aedd6 100644 --- a/pym/_emerge/sync/old_tree_timestamp.py +++ b/pym/_emerge/sync/old_tree_timestamp.py @@ -40,15 +40,15 @@ def whenago(seconds): days = days % 365 if years: - out.append(str(years)+"y ") + out.append("%dy " % years) if days: - out.append(str(days)+"d ") + out.append("%dd " % days) if hrs: - out.append(str(hrs)+"h ") + out.append("%dh " % hrs) if mins: - out.append(str(mins)+"m ") + out.append("%dm " % mins) if sec: - out.append(str(sec)+"s ") + out.append("%ds " % sec) return "".join(out).strip() |