Skip to content

Commit b6bead2

Browse files
committed
hd-rum-translator: printout: delimit byte count
use comma delimiting thousands for better readibility
1 parent 5c379c8 commit b6bead2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/hd-rum-translator/hd-rum-translator.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,12 @@ int main(int argc, char **argv)
11781178
if (tmp) {
11791179
strftime(tim_str, sizeof(tim_str), "%F %T", tmp);
11801180
}
1181-
log_msg(LOG_LEVEL_INFO, "[%s] Received %llu bytes in %g seconds = %sbps\n", tim_str, cur_data, seconds, format_in_si_units(bps * 8));
1181+
char buf[FORMAT_NUM_MAX_SZ];
1182+
log_msg(LOG_LEVEL_INFO,
1183+
"[%s] Received %s bytes in %g seconds = %sbps\n",
1184+
tim_str,
1185+
format_number_with_delim(cur_data, buf, sizeof buf),
1186+
seconds, format_in_si_units(bps * 8));
11821187
t0 = t;
11831188
last_data = received_data;
11841189
}

0 commit comments

Comments
 (0)