projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee3bc70
)
ps: seconds_since_boot: uint64_t -> ulong
author
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 26 Jan 2013 13:21:15 +0000
(14:21 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Sat, 26 Jan 2013 13:21:15 +0000
(14:21 +0100)
Even if long is 32-bit, 4 billion second uptime isn't likely :)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/ps.c
patch
|
blob
|
history
diff --git
a/procps/ps.c
b/procps/ps.c
index 5f7372263d8013aa18977a9a7110f6033234ab81..89cadad007d18f7f1645d72e1b9f2664974e2ab5 100644
(file)
--- a/
procps/ps.c
+++ b/
procps/ps.c
@@
-141,10
+141,7
@@
struct globals {
unsigned terminal_width;
#if ENABLE_FEATURE_PS_TIME
unsigned kernel_HZ;
- /* used to be long long, but 64 bits is enough
- * (long long may become 128 bits in the future):
- */
- uint64_t seconds_since_boot;
+ unsigned long seconds_since_boot;
#endif
} FIX_ALIASING;
#define G (*(struct globals*)&bb_common_bufsiz1)