Fixed. Patch by hua.zhang@sun.com. Closes #345813.
2006-06-24 Benoît Dejean <benoit@placenet.org> * netlist.c: (glibtop_get_netlist_s): Fixed. Patch by hua.zhang@sun.com. Closes #345813.
This commit is contained in:
committed by
Benoît Dejean
parent
739e9cac4a
commit
1826be8ef6
@@ -1,3 +1,11 @@
|
||||
2006-06-24 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* netlist.c: (glibtop_get_netlist_s):
|
||||
|
||||
Fixed.
|
||||
Patch by hua.zhang@sun.com.
|
||||
Closes #345813.
|
||||
|
||||
2006-06-24 Benoît Dejean <benoit@placenet.org>
|
||||
|
||||
* msg_limits.c: (glibtop_init_msg_limits_p),
|
||||
|
@@ -50,13 +50,18 @@ glibtop_get_netlist_s (glibtop *server, glibtop_netlist *buf)
|
||||
devices = g_ptr_array_new();
|
||||
|
||||
kc = kstat_open();
|
||||
|
||||
if (kc == NULL) {
|
||||
glibtop_warn_io_r(server, "kstat_open()");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (ksp = kc->kc_chain; ksp; ksp = ksp->ks_next)
|
||||
{
|
||||
if (strcmp(ksp->ks_class, "net") != 0)
|
||||
continue;
|
||||
|
||||
g_ptr_array_add(devices, g_strdup(ksp->ks_name));
|
||||
buf->number++;
|
||||
}
|
||||
|
||||
kstat_close(kc);
|
||||
|
Reference in New Issue
Block a user