Add header for std::pow

This commit is contained in:
John Maguire 2014-06-19 15:33:45 +02:00
parent d5617c0daf
commit 03eb241c00
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
#include "seafileservice.h"
#include "seafileservice.h"
#include <cmath>
#include <qjson/parser.h>
#include <QTimer>
@ -550,7 +552,7 @@ bool SeafileService::CheckReply(QNetworkReply** reply, int tries) {
seconds_to_wait =
((*reply)->rawHeader("X-Throttle-Wait-Seconds").toInt() + 1) * 1000;
} else {
seconds_to_wait = pow(tries, 2) * 1000;
seconds_to_wait = std::pow(tries, 2) * 1000;
}
QTimer timer;