Skip to content

Commit be6c376

Browse files
ziuziakowskaengdoreis
authored andcommitted
always print seconds taken even if 0
Signed-off-by: Alice Ziuziakowska <a.ziuziakowska@lowrisc.org>
1 parent b710b0a commit be6c376

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/visuals/throughput.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct Throughput {
6767

6868
for (size_t i = 0; i < units.size(); ++i) {
6969
int part = (i < static_cast<int>(units.size()) - 1) ? num % 60 : num;
70-
if (part != 0) {
70+
if (i == 0 || part != 0) {
7171
result = std::format("{}{}", part, units[i]) + result;
7272
}
7373
num /= 60;

0 commit comments

Comments
 (0)