changeset 154:2512f93053fc

saving 4 chars of width on RecentChanges imported from: moin--main--1.5--patch-156
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 29 Oct 2005 17:37:56 +0000
parents c4c7dc546c65
children 98592419bc03
files MoinMoin/macro/RecentChanges.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/macro/RecentChanges.py	Sat Oct 29 16:08:40 2005 +0000
+++ b/MoinMoin/macro/RecentChanges.py	Sat Oct 29 17:37:56 2005 +0000
@@ -85,9 +85,9 @@
     d['time_html'] = None
     if request.cfg.changed_time_fmt:
         tdiff = long(tnow - wikiutil.version2timestamp(long(line.ed_time_usecs))) / 60 # has to be long for py 2.2.x
-        if tdiff < 1440:
-            d['time_html'] = _("%(hours)dh %(mins)dm ago") % {
-                'hours': int(tdiff/60), 'mins': tdiff%60}
+        if tdiff < 100: # was 1440
+            d['time_html'] = _("%(mins)dm ago") % {
+                'mins': tdiff}
         else:
             d['time_html'] = time.strftime(request.cfg.changed_time_fmt, line.time_tuple)