diff options
Diffstat (limited to 'src/firemon')
-rw-r--r-- | src/firemon/netstats.c | 4 | ||||
-rw-r--r-- | src/firemon/top.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/firemon/netstats.c b/src/firemon/netstats.c index 0a1b7e0c4..7d86ca45e 100644 --- a/src/firemon/netstats.c +++ b/src/firemon/netstats.c | |||
@@ -47,7 +47,7 @@ static char *get_user_name(uid_t uid) { | |||
47 | 47 | ||
48 | static char *get_header(void) { | 48 | static char *get_header(void) { |
49 | char *rv; | 49 | char *rv; |
50 | if (asprintf(&rv, "%-5.5s %-9.9s %-10.10s %-10.10s %s", | 50 | if (asprintf(&rv, "%-7.7s %-9.9s %-10.10s %-10.10s %s", |
51 | "PID", "User", "RX(KB/s)", "TX(KB/s)", "Command") == -1) | 51 | "PID", "User", "RX(KB/s)", "TX(KB/s)", "Command") == -1) |
52 | errExit("asprintf"); | 52 | errExit("asprintf"); |
53 | 53 | ||
@@ -183,7 +183,7 @@ static void print_proc(int index, int itv, int col) { | |||
183 | sprintf(ptrtx, "%.03f", tx_kbps); | 183 | sprintf(ptrtx, "%.03f", tx_kbps); |
184 | 184 | ||
185 | char buf[1024 + 1]; | 185 | char buf[1024 + 1]; |
186 | snprintf(buf, 1024, "%-5.5s %-9.9s %-10.10s %-10.10s %s", | 186 | snprintf(buf, 1024, "%-7.7s %-9.9s %-10.10s %-10.10s %s", |
187 | pidstr, ptruser, ptrrx, ptrtx, ptrcmd); | 187 | pidstr, ptruser, ptrrx, ptrtx, ptrcmd); |
188 | if (col < 1024) | 188 | if (col < 1024) |
189 | buf[col] = '\0'; | 189 | buf[col] = '\0'; |
diff --git a/src/firemon/top.c b/src/firemon/top.c index 2bfa63380..0633370ac 100644 --- a/src/firemon/top.c +++ b/src/firemon/top.c | |||
@@ -47,7 +47,7 @@ static char *get_user_name(uid_t uid) { | |||
47 | 47 | ||
48 | static char *get_header(void) { | 48 | static char *get_header(void) { |
49 | char *rv; | 49 | char *rv; |
50 | if (asprintf(&rv, "%-5.5s %-9.9s %-8.8s %-8.8s %-5.5s %-4.4s %-9.9s %s", | 50 | if (asprintf(&rv, "%-7.7s %-9.9s %-8.8s %-8.8s %-5.5s %-4.4s %-9.9s %s", |
51 | "PID", "User", "RES(KiB)", "SHR(KiB)", "CPU%", "Prcs", "Uptime", "Command") == -1) | 51 | "PID", "User", "RES(KiB)", "SHR(KiB)", "CPU%", "Prcs", "Uptime", "Command") == -1) |
52 | errExit("asprintf"); | 52 | errExit("asprintf"); |
53 | 53 | ||
@@ -165,7 +165,7 @@ static char *print_top(unsigned index, unsigned parent, unsigned *utime, unsigne | |||
165 | char prcs_str[10]; | 165 | char prcs_str[10]; |
166 | snprintf(prcs_str, 10, "%d", *cnt); | 166 | snprintf(prcs_str, 10, "%d", *cnt); |
167 | 167 | ||
168 | if (asprintf(&rv, "%-5.5s %-9.9s %-8.8s %-8.8s %-5.5s %-4.4s %-9.9s %s", | 168 | if (asprintf(&rv, "%-7.7s %-9.9s %-8.8s %-8.8s %-5.5s %-4.4s %-9.9s %s", |
169 | pidstr, ptruser, rss, shared, cpu_str, prcs_str, uptime_str, ptrcmd) == -1) | 169 | pidstr, ptruser, rss, shared, cpu_str, prcs_str, uptime_str, ptrcmd) == -1) |
170 | errExit("asprintf"); | 170 | errExit("asprintf"); |
171 | 171 | ||