mirror of
https://github.com/overte-org/overte.git
synced 2025-07-29 10:20:54 +02:00
fix floats that aren't actually floats
This commit is contained in:
parent
4a8b390da0
commit
6d500d64d1
1 changed files with 2 additions and 2 deletions
|
@ -733,9 +733,9 @@ void DomainServer::setupPendingAssignmentCredits() {
|
||||||
qint64 elapsedMsecsSinceLastPayment = nodeData->getPaymentIntervalTimer().elapsed();
|
qint64 elapsedMsecsSinceLastPayment = nodeData->getPaymentIntervalTimer().elapsed();
|
||||||
nodeData->getPaymentIntervalTimer().restart();
|
nodeData->getPaymentIntervalTimer().restart();
|
||||||
|
|
||||||
const float CREDITS_PER_HOUR = 0.10;
|
const float CREDITS_PER_HOUR = 0.10f;
|
||||||
const float CREDITS_PER_MSEC = CREDITS_PER_HOUR / (60 * 60 * 1000);
|
const float CREDITS_PER_MSEC = CREDITS_PER_HOUR / (60 * 60 * 1000);
|
||||||
const int SATOSHIS_PER_MSEC = CREDITS_PER_MSEC * powf(10, 8);
|
const int SATOSHIS_PER_MSEC = CREDITS_PER_MSEC * powf(10.0f, 8.0f);
|
||||||
|
|
||||||
float pendingCredits = elapsedMsecsSinceLastPayment * SATOSHIS_PER_MSEC;
|
float pendingCredits = elapsedMsecsSinceLastPayment * SATOSHIS_PER_MSEC;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue