From 52779f2bce9e16b4c78f744d850609c7a389d651 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 2 Sep 2010 15:08:35 -0700 Subject: [PATCH] Fix whenago() to show times as integers instead of floats. --- pym/_emerge/sync/old_tree_timestamp.py | 10 +++++----- 1 file 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() -- 2.26.2