diff --git a/src/top.c b/src/top.c index 1eae11c5..5123d97f 100644 --- a/src/top.c +++ b/src/top.c @@ -92,7 +92,7 @@ static bool update(int fd) { ns->known = false; while(recvline(fd, line, sizeof line)) { - int n = sscanf(line, "%d %d %4095s %"PRIu64" %"PRIu64" %"PRIu64" %"PRIu64, &code, &req, name, &in_packets, &in_bytes, &out_packets, &out_bytes); + int n = sscanf(line, "%d %d %4095s %"PRIu64" %"PRIu64" %"PRIu64" %"PRIu64 "%d", &code, &req, name, &in_packets, &in_bytes, &out_packets, &out_bytes, (int *)&myself); if(n == 2) return true;