procfs: Fix uptime being close to maximum 32-bit value in certain config

This commit is contained in:
Juha Niskanen
2017-11-10 07:51:17 -06:00
committed by Gregory Nutt
parent 25c1f4407e
commit cc7af2b0d0
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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 */