This commit is contained in:
2026-05-11 12:11:15 +00:00
parent 07a8ecddf9
commit 00656d4ba3
2 changed files with 3 additions and 3 deletions

View File

@@ -58,7 +58,7 @@ void sys_get_network(struct network_t *network) {
static char buf[32];
static struct _net_t prev;
struct _net_t current = {};
snprintf(path, sizeof(path), "/sys/class/net/%s/statistics", network->device);
snprintf(path, sizeof(path), "/sys/class/net/%s/statistics/", network->device);
clock_gettime(CLOCK_MONOTONIC, &current.ts);
fast_read_num_u64(path, "rx_bytes", buf, &current.rx, 1);