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:
committed by
Martin Baulig
parent
d59b8e5220
commit
9043e29b18
@@ -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>
|
1999-09-28 Radek Doulik <rodo@praha.eridan.cz>
|
||||||
|
|
||||||
* proclist.c (glibtop_get_proclist_s): fixed idle processes filtering
|
* proclist.c (glibtop_get_proclist_s): fixed idle processes filtering
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user