X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Ftoolbars%2Fmainbar.cpp;h=dcc35ecee8f4e42800354080e0b2b34d047ebbcb;hp=fff245d31e8d44b3b3986480f339c44a031b7ce9;hb=3ccf0f7f5b1b31ac628a983a2becee6f4c4c1507;hpb=adb3831eeae71b69bb035c9af713ea1f8623407f diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index fff245d..dcc35ec 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -587,7 +587,8 @@ bool MainBar::eventFilter(QObject *watched, QEvent *event) auto sec = pv::util::Timestamp(sample_count_.value()) / sample_rate_.value(); QHelpEvent *help_event = static_cast(event); - QString str = tr("Total sampling time: %1").arg(pv::util::format_second(sec)); + QString str = tr("Total sampling time: %1").arg( + pv::util::format_time_si(sec, pv::util::SIPrefix::unspecified, 0, "s", false)); QToolTip::showText(help_event->globalPos(), str); return true;