fix(lotus-sim): average over 2 days

There's too much noise per day.
This commit is contained in:
Steven Allen 2021-06-12 11:51:35 -07:00
parent 63178ce982
commit 8fffaa5c47

View File

@ -45,7 +45,7 @@ func printInfo(ctx context.Context, sim *simulation.Simulation, out io.Writer) e
if err != nil { if err != nil {
return err return err
} }
powerLookbackEpoch := head.Height() - builtin.EpochsInDay powerLookbackEpoch := head.Height() - builtin.EpochsInDay*2
if powerLookbackEpoch < start.Height() { if powerLookbackEpoch < start.Height() {
powerLookbackEpoch = start.Height() powerLookbackEpoch = start.Height()
} }