NetUsage: finish first working version

This commit is contained in:
李通洲
2023-09-26 16:26:15 +08:00
committed by 李通洲
parent 9004d9e05c
commit 24a6efa227
22 changed files with 453 additions and 163 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
#include <net/if.h>
const char* ffGetNetIoCounter(FFlist* result)
const char* ffNetUsageGetIoCounters(FFlist* result)
{
FF_AUTO_CLOSE_DIR DIR* dirp = opendir("/sys/class/net");
if (!dirp) return "opendir(\"/sys/class/net\") == NULL";