mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 05:04:17 +01:00
NetUsage: finish first working version
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user