Revert changes to top command - myself flag was missing
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
thorkill 2017-06-17 22:38:31 +02:00
parent 94e5a9082b
commit 7030127fce

View file

@ -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;