projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb8d181
)
cgtop: use SWAP_TWO() macro
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 25 Nov 2018 14:55:30 +0000
(23:55 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 2 Dec 2018 11:06:07 +0000
(12:06 +0100)
src/cgtop/cgtop.c
patch
|
blob
|
history
diff --git
a/src/cgtop/cgtop.c
b/src/cgtop/cgtop.c
index 6a821ff38e73d2da24459e86a860714b4a97e311..5abfab03de5416511e8c47563c61a15ec5e1d73f 100644
(file)
--- a/
src/cgtop/cgtop.c
+++ b/
src/cgtop/cgtop.c
@@
-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;