Commit 977c73d5 authored by Roland Knall's avatar Roland Knall 💬
Browse files

Qt: Pad time values for loading times

Pad the loading time values with leading zeros each
Fixes: #17601
parent f0a375cf
Pipeline #373723507 passed with stages
in 18 minutes and 51 seconds
......@@ -36,6 +36,7 @@
#include <QHBoxLayout>
#include <QSplitter>
#include <QToolButton>
#include <QLatin1Char>
// To do:
// - Use the CaptureFile class.
......@@ -424,9 +425,9 @@ void MainStatusBar::showCaptureStatistics()
gulong computed_elapsed = cf_get_computed_elapsed(cap_file_);
packets_str.append(QString(tr(" %1 Load time: %2:%3.%4"))
.arg(UTF8_MIDDLE_DOT)
.arg(computed_elapsed/60000)
.arg(computed_elapsed%60000/1000)
.arg(computed_elapsed%1000));
.arg(computed_elapsed/60000, 2, 10, QLatin1Char('0'))
.arg(computed_elapsed%60000/1000, 2, 10, QLatin1Char('0'))
.arg(computed_elapsed%1000, 3, 10, QLatin1Char('0')));
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment