mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
miner: fix inconsistent time unit, close XFN-59 (#1633)
This commit is contained in:
parent
d451580b37
commit
f90a12d9f7
1 changed files with 1 additions and 1 deletions
|
|
@ -388,7 +388,7 @@ func getResetTime(chain *core.BlockChain, minePeriod int) time.Duration {
|
|||
if resetTime > minePeriodDuration || resetTime <= 0 {
|
||||
resetTime = minePeriodDuration
|
||||
}
|
||||
log.Debug("[update] Miner worker timer reset", "resetMilliseconds", resetTime.Milliseconds(), "minePeriodSec", minePeriod, "currentBlockTimeSec", fmt.Sprintf("%d", currentBlockTime), "currentSystemTimeSec", fmt.Sprintf("%d.%03d", nowTime/1000, nowTime%1000))
|
||||
log.Debug("[update] Miner worker timer reset", "resetTimeSec", resetTime.Seconds(), "minePeriodSec", minePeriod, "currentBlockTimeSec", fmt.Sprintf("%d", currentBlockTime), "currentSystemTimeSec", fmt.Sprintf("%d.%03d", nowTime/1000, nowTime%1000))
|
||||
return resetTime
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue