1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix #174, was only partially fixed

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-08-31 12:49:41 +02:00
parent 169bca0a76
commit 4a66026676
2 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ FileTransfertWidget::FileTransfertWidget(ToxFile File)
buttonLayout->setSpacing(0);
}
QString FileTransfertWidget::getHumanReadableSize(int size)
QString FileTransfertWidget::getHumanReadableSize(unsigned long long size)
{
static const char* suffix[] = {"B","kiB","MiB","GiB","TiB"};
int exp = 0;
@ -161,7 +161,7 @@ void FileTransfertWidget::onFileTransferInfo(int FriendId, int FileNum, int64_t
qWarning() << "FileTransfertWidget::onFileTransferInfo: Negative transfer speed !";
diff = 0;
}
int rawspeed = diff / timediff;
long rawspeed = diff / timediff;
speed->setText(getHumanReadableSize(rawspeed)+"/s");
size->setText(getHumanReadableSize(Filesize));
if (!rawspeed)

View File

@ -49,7 +49,7 @@ private slots:
void pauseResumeSend();
private:
QString getHumanReadableSize(int size);
QString getHumanReadableSize(unsigned long long size);
private:
QLabel *pic, *filename, *size, *speed, *eta;