Codebase list golang-github-vbauerster-mpb / adca4cb
ETA: correct description of age param. Vladimir Bauer 8 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
223223 //
224224 // `style` one of [ET_STYLE_GO|ET_STYLE_HHMMSS|ET_STYLE_HHMM|ET_STYLE_MMSS]
225225 //
226 // `age` is a decay factor alpha for underlying ewma.
227 // General rule of thumb, for the best value:
228 // expected progress time in seconds divided by two.
229 // For example expected progress duration is one hour.
230 // age = 3600 / 2
226 // `age` is related to the decay factor alpha by the formula given for the DECAY constant.
227 // It signifies the average age of the samples as time goes to infinity. Basically age is
228 // the previous N samples to average over. If zero value provided, it defaults to 30.
231229 //
232230 // `startBlock` is channel, user suppose to send time.Now() on each iteration of block start.
233231 //