void-packages/srcpkgs/procps/patches/w_time.patch

17 lines
586 B
Diff
Raw Normal View History

Description: Let fprintf print locale-friendly seconds
Author: Craig Small <csmall@debian.org>
Bug-Debian: http://bugs.debian.org/252575
Index: b/w.c
===================================================================
--- a/w.c 2009-11-24 20:53:04.000000000 +1100
+++ b/w.c 2009-11-24 21:00:37.000000000 +1100
@@ -83,7 +83,7 @@
else if (t > 60) /* > 1 minute */
fprintf(fout, " %2lu:%02u ", t/60, (unsigned) t%60);
else
- fprintf(fout, " %2lu.%02us", t, centi_sec);
+ fprintf(fout, " %2lu.%02us", t, centi_sec);
}
/**** stat the device file to get an idle time */