projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove newlines at end of log messages.
[tinc]
/
src
/
top.c
diff --git
a/src/top.c
b/src/top.c
index
f14395e
..
5552895
100644
(file)
--- a/
src/top.c
+++ b/
src/top.c
@@
-59,7
+59,6
@@
static bool cumulative = false;
static list_t node_list;
static struct timeval now, prev, diff;
static int delay = 1000;
static list_t node_list;
static struct timeval now, prev, diff;
static int delay = 1000;
-static bool running = true;
static bool changed = true;
static const char *unit = "bytes";
static float scale = 1;
static bool changed = true;
static const char *unit = "bytes";
static float scale = 1;
@@
-247,6
+246,7
@@
static void redraw(void) {
void top(int fd) {
initscr();
timeout(delay);
void top(int fd) {
initscr();
timeout(delay);
+ bool running = true;
while(running) {
update(fd);
while(running) {
update(fd);