Don't cast uptime and idletime to float as suggested by John Kodis.

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:11:33 +00:00
committed by Martin Baulig
parent d59b8e5220
commit 9043e29b18
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-09-28 Radek Doulik <rodo@praha.eridan.cz>
* proclist.c (glibtop_get_proclist_s): fixed idle processes filtering

View File

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