mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-11 17:55:51 +00:00
Correction for calculations
This commit is contained in:
parent
800557f600
commit
5109744fc4
@ -527,8 +527,8 @@ class MintingInfo extends LitElement {
|
|||||||
_levelUpDays() {
|
_levelUpDays() {
|
||||||
let nextBatch = 1000 - (this.nodeInfo.height % 1000)
|
let nextBatch = 1000 - (this.nodeInfo.height % 1000)
|
||||||
let countBlocks = this._blocksNeed() - (this.addressInfo.blocksMinted + this.addressInfo.blocksMintedAdjustment)
|
let countBlocks = this._blocksNeed() - (this.addressInfo.blocksMinted + this.addressInfo.blocksMintedAdjustment)
|
||||||
let countBlocksActual = countBlocks + 1000 + nextBatch - (countBlocks % 1000)
|
countBlocks = +countBlocks + 1000
|
||||||
countBlocksActual += +countBlocksActual < 0 ? 1000 : 0
|
let countBlocksActual = countBlocks + nextBatch - (countBlocks % 1000)
|
||||||
let countDays = (countBlocksActual / this._timeCalc()).toFixed(2)
|
let countDays = (countBlocksActual / this._timeCalc()).toFixed(2)
|
||||||
let countString = countDays.toString()
|
let countString = countDays.toString()
|
||||||
return "" + countString
|
return "" + countString
|
||||||
@ -537,8 +537,8 @@ class MintingInfo extends LitElement {
|
|||||||
_levelUpBlocks() {
|
_levelUpBlocks() {
|
||||||
let nextBatch = 1000 - (this.nodeInfo.height % 1000)
|
let nextBatch = 1000 - (this.nodeInfo.height % 1000)
|
||||||
let countBlocks = this._blocksNeed() - (this.addressInfo.blocksMinted + this.addressInfo.blocksMintedAdjustment)
|
let countBlocks = this._blocksNeed() - (this.addressInfo.blocksMinted + this.addressInfo.blocksMintedAdjustment)
|
||||||
let countBlocksActual = countBlocks + 1000 + nextBatch - (countBlocks % 1000)
|
countBlocks = +countBlocks + 1000
|
||||||
countBlocksActual += +countBlocksActual < 0 ? 1000 : 0
|
let countBlocksActual = countBlocks + nextBatch - (countBlocks % 1000)
|
||||||
let countBlocksString = countBlocksActual.toString()
|
let countBlocksString = countBlocksActual.toString()
|
||||||
return "" + countBlocksString
|
return "" + countBlocksString
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user