Use `server->os_version_code' instead of GLIBTOP_LINUX_VERSION_CODE.
1999-01-06 Martin Baulig <martin@home-of-linux.org> * netload.c (glibtop_get_netload_s): Use `server->os_version_code' instead of GLIBTOP_LINUX_VERSION_CODE.
This commit is contained in:
committed by
Martin Baulig
parent
3b270123eb
commit
8ba42b25e0
@@ -1,3 +1,8 @@
|
||||
1999-01-06 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
* netload.c (glibtop_get_netload_s): Use `server->os_version_code'
|
||||
instead of GLIBTOP_LINUX_VERSION_CODE.
|
||||
|
||||
1999-01-06 Martin Baulig <martin@home-of-linux.org>
|
||||
|
||||
Unconditionally enable SMP support for linux.
|
||||
|
@@ -182,7 +182,7 @@ glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
|
||||
* need IP accounting.
|
||||
*/
|
||||
|
||||
#if GLIBTOP_LINUX_VERSION_CODE < 131442
|
||||
if (server->os_version_code < 131442) {
|
||||
|
||||
/* If IP accounting is enabled in the kernel and it is
|
||||
* enabled for the requested interface, we use it to
|
||||
@@ -256,8 +256,7 @@ glibtop_get_netload_s (glibtop *server, glibtop_netload *buf,
|
||||
|
||||
if (success) return;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Ok, either IP accounting is not enabled in the kernel or
|
||||
* it was not enabled for the requested interface. */
|
||||
|
Reference in New Issue
Block a user