ps: seconds_since_boot: uint64_t -> ulong

Even if long is 32-bit, 4 billion second uptime isn't likely :)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2013-01-26 14:21:15 +01:00
parent ee3bc70cea
commit 17d4436424

View File

@ -141,10 +141,7 @@ struct globals {
unsigned terminal_width; unsigned terminal_width;
#if ENABLE_FEATURE_PS_TIME #if ENABLE_FEATURE_PS_TIME
unsigned kernel_HZ; unsigned kernel_HZ;
/* used to be long long, but 64 bits is enough unsigned long seconds_since_boot;
* (long long may become 128 bits in the future):
*/
uint64_t seconds_since_boot;
#endif #endif
} FIX_ALIASING; } FIX_ALIASING;
#define G (*(struct globals*)&bb_common_bufsiz1) #define G (*(struct globals*)&bb_common_bufsiz1)