add Id to Statistics
Vladimir Bauer
9 years ago
| 37 | 37 | // Statistics represents statistics of the progress bar. |
| 38 | 38 | // Cantains: Total, Current, TimeElapsed, TimePerItemEstimate |
| 39 | 39 | type Statistics struct { |
| 40 | Id int | |
| 40 | 41 | Completed bool |
| 41 | 42 | Total int64 |
| 42 | 43 | Current int64 |
| 493 | 494 | |
| 494 | 495 | func newStatistics(s *state) *Statistics { |
| 495 | 496 | return &Statistics{ |
| 497 | Id: s.id, | |
| 496 | 498 | Completed: s.completed, |
| 497 | 499 | Total: s.total, |
| 498 | 500 | Current: s.current, |