oops bug
This commit is contained in:
@@ -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, ¤t.ts);
|
||||
fast_read_num_u64(path, "rx_bytes", buf, ¤t.rx, 1);
|
||||
|
||||
Reference in New Issue
Block a user