aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-08 16:51:03 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-08 16:51:03 +0900
commit180d62e094a1a6b6fc69c99b291ef075dc649135 (patch)
tree0f99cc3c5ded79d3e77cd4757bfb8cbfc0e6f202 /jobs
parentda975f68f6a8503bf5466292dcdceed8c6f7fa6f (diff)
downloadlibquotient-180d62e094a1a6b6fc69c99b291ef075dc649135.tar.gz
libquotient-180d62e094a1a6b6fc69c99b291ef075dc649135.zip
Revert previous commit as it breaks building with VC 2015
This reverts commit da975f68f6a8503bf5466292dcdceed8c6f7fa6f.
Diffstat (limited to 'jobs')
-rw-r--r--jobs/basejob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index 157ac034..26ceb268 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -263,13 +263,13 @@ void BaseJob::finishJob()
BaseJob::duration_t BaseJob::getCurrentTimeout() const
{
- static const std::array<int, 4> timeouts ({ 90, 90, 120, 120 });
+ static const std::array<int, 4> timeouts = { 90, 90, 120, 120 };
return timeouts[std::min(d->retriesTaken, timeouts.size() - 1)] * 1000;
}
BaseJob::duration_t BaseJob::getNextRetryInterval() const
{
- static const std::array<int, 3> intervals ({ 5, 10, 30 });
+ static const std::array<int, 3> intervals = { 5, 10, 30 };
return intervals[std::min(d->retriesTaken, intervals.size() - 1)] * 1000;
}