mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
procfs: Fix uptime being close to maximum 32-bit value in certain config
This commit is contained in:
committed by
Gregory Nutt
parent
25c1f4407e
commit
cc7af2b0d0
@@ -240,7 +240,7 @@ static ssize_t uptime_read(FAR struct file *filep, FAR char *buffer,
|
||||
{
|
||||
/* System time */
|
||||
|
||||
ticktime = clock_systimer();
|
||||
ticktime = clock_systimer() - INITIAL_SYSTEM_TIMER_TICKS;
|
||||
|
||||
#if defined(CONFIG_HAVE_DOUBLE) && defined(CONFIG_LIBC_FLOATINGPOINT)
|
||||
/* Convert the system up time to a seconds + hundredths of seconds string */
|
||||
|
||||
Reference in New Issue
Block a user