From 7030127fce2790f7a6f5e40049f0aeb225975f23 Mon Sep 17 00:00:00 2001 From: thorkill Date: Sat, 17 Jun 2017 22:38:31 +0200 Subject: [PATCH] Revert changes to top command - myself flag was missing --- src/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;