Fix "netstat -hdw 1" output.
Reported by: np@
This commit is contained in:
parent
45bc78eb45
commit
65f2833127
@ -244,10 +244,6 @@ show_stat(const char *fmt, int width, const char *name,
|
||||
/* Format in human readable form. */
|
||||
humanize_number(buf, sizeof(buf), (int64_t)value, "",
|
||||
HN_AUTOSCALE, HN_NOSPACE | HN_DECIMAL);
|
||||
snprintf(newfmt, sizeof(newfmt), "%s%%%ds%s",
|
||||
lsep, width, rsep);
|
||||
xo_emit(newfmt, buf);
|
||||
xo_attr("value", "%lu", value);
|
||||
maybe_pad(lsep);
|
||||
snprintf(newfmt, sizeof(newfmt), "{:%s/%%%ds}", name, width);
|
||||
xo_emit(newfmt, buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user