Increased version and changed donationstrategy again

This commit is contained in:
BenDroid 2018-03-25 14:41:56 +02:00
parent caa0ce6fa1
commit d0ff7dc830
4 changed files with 7 additions and 7 deletions

View file

@ -33,7 +33,7 @@
* Percentage of your hashing power that you want to donate to the developer, can be 0 if you don't want to do that.
* Example of how it works for the default setting of 1:
* You miner will mine into your usual pool for 99 minutes, then switch to the developer's pool for 1 minute.
* Since v1.5.2 start time randomized in range from 50 to 150 minutes minus donation time, to reduce peaks on donation
* Since v1.5.2 start time randomized in range from 30 to 60 minutes minus donation time, to reduce peaks on donation
* pool when restarting a bunch of miners.
* Switching is instant, and only happens after a successful connection, so you never loose any hashes.
*

View file

@ -68,7 +68,7 @@ DonateStrategy::DonateStrategy(const char *agent, IStrategyListener *listener) :
m_timer.data = this;
uv_timer_init(uv_default_loop(), &m_timer);
idle(random(3000, 9000) * 1000 - m_donateTime);
idle(random(1500, 3600) * 1000);
}
@ -125,9 +125,9 @@ void DonateStrategy::onResultAccepted(Client *client, const SubmitResult &result
}
void DonateStrategy::idle(int timeout)
void DonateStrategy::idle(uint64_t timeout)
{
uv_timer_start(&m_timer, DonateStrategy::onTimer, static_cast<uint64_t>(timeout), 0);
uv_timer_start(&m_timer, DonateStrategy::onTimer, timeout, 0);
}

View file

@ -58,7 +58,7 @@ protected:
void onResultAccepted(Client *client, const SubmitResult &result, const char *error) override;
private:
void idle(int timeout);
void idle(uint64_t timeout);
void suspend();
static void onTimer(uv_timer_t *handle);

View file

@ -36,14 +36,14 @@
#define APP_DESC "XMRigCC CPU miner"
#define APP_COPYRIGHT "Copyright (C) 2017- BenDr0id"
#endif
#define APP_VERSION "1.5.1 (based on XMRig 2.4.5)"
#define APP_VERSION "1.5.2 (based on XMRig 2.4.5)"
#define APP_DOMAIN ""
#define APP_SITE "https://github.com/Bendr0id/xmrigCC"
#define APP_KIND "cpu"
#define APP_VER_MAJOR 1
#define APP_VER_MINOR 5
#define APP_VER_BUILD 1
#define APP_VER_BUILD 2
#define APP_VER_REV 0
#ifndef NDEBUG