New has_sysfs function to avoid stating over and over '/sys' on each
2006-07-27 Benoît Dejean <benoit@placenet.org> * glibtop_private.c: (has_sysfs): * glibtop_private.h: * netload.c: (glibtop_get_netload_s): * open.c: (set_linux_version): New has_sysfs function to avoid stating over and over '/sys' on each netload call.
This commit is contained in:
committed by
Benoît Dejean
parent
3345ef1704
commit
d497c25081
@@ -142,6 +142,10 @@ check_cpu_line_warn(glibtop *server, const char *line, unsigned i)
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
has_sysfs(void) G_GNUC_INTERNAL G_GNUC_CONST;
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __LINUX__GLIBTOP_PRIVATE_H__ */
|
||||
|
Reference in New Issue
Block a user