summaryrefslogtreecommitdiffstats
path: root/xmrstak/misc/executor.hpp
diff options
context:
space:
mode:
authorTony Butler <tony@esited.com>2018-04-17 13:10:49 -0600
committerGitHub <noreply@github.com>2018-04-17 13:10:49 -0600
commit70c319103554bfce6edd1c18786566f2bdcbc93b (patch)
tree92d4d8e58ef75a09592e30b17e55fd2136bd2008 /xmrstak/misc/executor.hpp
parent9158460bdc316fe9d6f1fb01095b5aff52c1acf8 (diff)
parent9df1d4d608f59e81e1e7db1f9b20dd2807e7dd6e (diff)
downloadxmr-stak-70c319103554bfce6edd1c18786566f2bdcbc93b.zip
xmr-stak-70c319103554bfce6edd1c18786566f2bdcbc93b.tar.gz
Merge pull request #1 from fireice-uk/dev
Dev
Diffstat (limited to 'xmrstak/misc/executor.hpp')
-rw-r--r--xmrstak/misc/executor.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/misc/executor.hpp b/xmrstak/misc/executor.hpp
index 9e145c3..be5ee6c 100644
--- a/xmrstak/misc/executor.hpp
+++ b/xmrstak/misc/executor.hpp
@@ -64,7 +64,7 @@ private:
inline bool is_dev_time()
{
//Add 2 seconds to compensate for connect
- constexpr size_t dev_portion = double(iDevDonatePeriod) * fDevDonationLevel + 2;
+ constexpr size_t dev_portion = static_cast<size_t>(double(iDevDonatePeriod) * fDevDonationLevel + 2.);
if(dev_portion < 12) //No point in bothering with less than 10s
return false;
OpenPOWER on IntegriCloud