mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-21 05:44:29 -05:00
added functionality to format speed for DetailsDialog
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1979 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5008cfdf25
commit
088abd243c
@ -136,7 +136,12 @@ void DetailsDialog::setSources(const QString & sources)
|
|||||||
|
|
||||||
void DetailsDialog::setDatarate(const double & datarate)
|
void DetailsDialog::setDatarate(const double & datarate)
|
||||||
{
|
{
|
||||||
ui.datarate_line->setText(QString::number(datarate));
|
QString temp;
|
||||||
|
temp.clear();
|
||||||
|
temp.sprintf("%.2f", datarate/1024.);
|
||||||
|
temp += " KB/s";
|
||||||
|
|
||||||
|
ui.datarate_line->setText(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DetailsDialog::setCompleted(const qulonglong & completed)
|
void DetailsDialog::setCompleted(const qulonglong & completed)
|
||||||
|
Loading…
Reference in New Issue
Block a user