diff options
author | Benoît Dejean <benoit@placenet.org> | 2006-07-27 09:23:32 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2006-07-27 09:23:32 +0000 |
commit | d497c250814a2069aba60caee36e2ced31d68344 (patch) | |
tree | b236550cfec4143d6e063a9ace01cdbdb77db31d /sysdeps/linux/glibtop_private.h | |
parent | 3345ef1704ddc2cf3db49a8b88550f41426c748f (diff) | |
download | libgtop-d497c250814a2069aba60caee36e2ced31d68344.tar.gz |
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.
Diffstat (limited to 'sysdeps/linux/glibtop_private.h')
-rw-r--r-- | sysdeps/linux/glibtop_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/linux/glibtop_private.h b/sysdeps/linux/glibtop_private.h index 2f01d793..30f53960 100644 --- a/sysdeps/linux/glibtop_private.h +++ b/sysdeps/linux/glibtop_private.h @@ -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__ */ |