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:
defnax 2010-01-06 00:19:20 +00:00
parent 5008cfdf25
commit 088abd243c

View File

@ -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)