New API to retrieve disk stats in Linux

This commit is contained in:
James Dominic P. Guana
2020-05-23 08:26:34 +08:00
committed by Robert Roth
parent d49e17039e
commit 9e62440b31
18 changed files with 272 additions and 3 deletions

View File

@@ -27,6 +27,7 @@
const unsigned long glibtop_server_features =
GLIBTOP_SUID_CPU +
GLIBTOP_SUID_DISK +
GLIBTOP_SUID_MEM +
GLIBTOP_SUID_SWAP +
GLIBTOP_SUID_UPTIME +
@@ -56,6 +57,9 @@ const _glibtop_init_func_t _glibtop_init_hook_s [] = {
#if !GLIBTOP_SUID_CPU
_glibtop_init_cpu_s,
#endif
#if !GLIBTOP_SUID_DISK
_glibtop_init_disk_s,
#endif
#if !GLIBTOP_SUID_MEM
_glibtop_init_mem_s,
#endif