Codebase list golang-github-vbauerster-mpb / 71dce92
add Id to Statistics Vladimir Bauer 9 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3737 // Statistics represents statistics of the progress bar.
3838 // Cantains: Total, Current, TimeElapsed, TimePerItemEstimate
3939 type Statistics struct {
40 Id int
4041 Completed bool
4142 Total int64
4243 Current int64
493494
494495 func newStatistics(s *state) *Statistics {
495496 return &Statistics{
497 Id: s.id,
496498 Completed: s.completed,
497499 Total: s.total,
498500 Current: s.current,