Your message dated Tue, 08 Sep 2009 01:05:06 +0200
with message-id <[email protected]>
and subject line nope
has caused the Debian Bug report #302453,
regarding Helena's timespan function annoying
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
302453: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=302453
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dak
Severity: minor
Tags: patch
showing '3 months' etc is just weird and inaccurate, I prefer just
displaying [X days, ] Y hours. Sufficiently precise, and more
consistent.
--- /org/ftp.debian.org/katie/helena Tue Mar 15 03:20:57 2005
+++ helena Thu Mar 31 16:29:01 2005
@@ -69,7 +69,7 @@
################################################################################
def plural(x):
- if x > 1:
+ if x != 1:
return "s";
else:
return "";
@@ -77,28 +77,11 @@
################################################################################
def time_pp(x):
- if x < 60:
- unit="second";
- elif x < 3600:
- x /= 60;
- unit="minute";
- elif x < 86400:
- x /= 3600;
- unit="hour";
- elif x < 604800:
- x /= 86400;
- unit="day";
- elif x < 2419200:
- x /= 604800;
- unit="week";
- elif x < 29030400:
- x /= 2419200;
- unit="month";
- else:
- x /= 29030400;
- unit="year";
- x = int(x);
- return "%s %s%s" % (x, unit, plural(x));
+ ret = ""
+ x = int(x/3600)
+ if x > 24: ret += "%s day%s, " % (int(x/24), plural(int(x/24)))
+ ret += "%s hour%s" % (x%24, plural(x%24))
+ return ret
################################################################################
--Jeroen
--
Jeroen van Wolffelaar
[email protected]
http://jeroen.A-Eskwadraat.nl
--- End Message ---
--- Begin Message ---
Nah, it looks fine as it is.
--
bye, Joerg
> Thats all.
> Just a few questions about your package and then we got it and you will
> be in DAMINATION :).
I have no idea what DAMINATION is but it sounds cool. Let's get going.
--- End Message ---