**** Merged from HEAD ****

1999-10-19  Martin Baulig  <martin@home-of-linux.org>

	* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
	to float as suggested by John Kodis.
This commit is contained in:
Martin Baulig
1999-10-19 00:16:29 +00:00
committed by Martin Baulig
parent bbc872138b
commit 6b6e1261f1
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
1999-10-19 Martin Baulig <martin@home-of-linux.org>
* uptime.c (glibtop_get_uptime_s): Don't cast uptime and idletime
to float as suggested by John Kodis.
1999-07-29 Martin Baulig <martin@home-of-linux.org> 1999-07-29 Martin Baulig <martin@home-of-linux.org>
* proctime.c (glibtop_get_proctime_s): Don't provide `rtime' * proctime.c (glibtop_get_proctime_s): Don't provide `rtime'

View File

@@ -62,8 +62,8 @@ glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
buffer [len] = '\0'; buffer [len] = '\0';
buf->uptime = (float) strtod (buffer, &p); buf->uptime = strtod (buffer, &p);
buf->idletime = (float) strtod (p, &p); buf->idletime = strtod (p, &p);
buf->flags = _glibtop_sysdeps_uptime; buf->flags = _glibtop_sysdeps_uptime;
} }