Fix "netstat -hdw 1" output.

Reported by: np@
This commit is contained in:
Marcel Moolenaar 2015-02-25 17:06:27 +00:00
parent 45bc78eb45
commit 65f2833127
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279288

View File

@ -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);