Your message dated Mon, 5 Oct 2009 17:24:10 +1100 with message-id <[email protected]> and subject line Re: Bug#513478: procps: 'w' does not display times correctly has caused the Debian Bug report #513478, regarding procps: 'w' does not display times correctly 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.) -- 513478: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=513478 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---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
--- End Message ---
--- Begin Message ---On Thu, Jan 29, 2009 at 02:43:34PM +0100, Jérémie Corbier wrote: > 'w' displays times in hours as if they were in minutes and times in minutes as > if they were in hours: It displays it like this: The standard format is DDdays, HH:MMm, MM:SS or SS.CC if the times are greater than 2 days, 1hour, or 1 minute respectively. To me the m is for the second parameter. It's how its been since forever though we have had bugs on and off about this for ages. - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 http://www.enc.com.au/ csmall at : enc.com.au http://www.debian.org/ Debian GNU/Linux, software should be Free
--- End Message ---

