cgtop: use SWAP_TWO() macro

This commit is contained in:
Yu Watanabe 2018-11-25 23:55:30 +09:00
parent fb8d181e59
commit 5f5b612203

View file

@ -943,7 +943,6 @@ static int run(int argc, char *argv[]) {
arg_iterations = on_tty() ? 0 : 1;
while (!quit) {
Hashmap *c;
usec_t t;
char key;
char h[FORMAT_TIMESPAN_MAX];
@ -957,10 +956,7 @@ static int run(int argc, char *argv[]) {
return log_error_errno(r, "Failed to refresh: %m");
hashmap_clear(b);
c = a;
a = b;
b = c;
SWAP_TWO(a, b);
last_refresh = t;
immediate_refresh = false;