Package: procps Version: 1:3.2.7-11 Severity: minor Tags: patch Hi,
'w' displays times in hours as if they were in minutes and times in minutes as
if they were in hours:
--- 8< ---
--- old/procps-3.2.7/w.c 2009-01-29 14:19:26.000000000 +0100
+++ new/procps-3.2.7/w.c 2009-01-29 14:20:57.000000000 +0100
@@ -90,9 +90,9 @@
if (t >= 48*60*60) /* > 2 days */
fprintf(fout, " %2ludays", t/(24*60*60));
else if (t >= 60*60) /* > 1 hour */
- fprintf(fout, " %2lu:%02um", t/(60*60), (unsigned) ((t/60)%60));
+ fprintf(fout, " %2lu:%02u ", t/(60*60), (unsigned) ((t/60)%60));
else if (t > 60) /* > 1 minute */
- fprintf(fout, " %2lu:%02u ", t/60, (unsigned) t%60);
+ fprintf(fout, " %2lu:%02um", t/60, (unsigned) t%60);
else
fprintf(fout, " %2lu.%02us", t, centi_sec);
}
--- 8< ---
Cheers,
--
Jeremie
/* ``Recursive, adj.;
see Recursive.''
-- Unknown */
-- System Information:
Debian Release: 5.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages procps depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libncurses5 5.7+20081213-1 shared libraries for terminal hand
ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip
Versions of packages procps recommends:
ii psmisc 22.6-1 Utilities that use the proc filesy
signature.asc
Description: Digital signature

