ToMilliseconds returns the duration list in milliseconds
()
| 105 | |
| 106 | // ToMilliseconds returns the duration list in milliseconds |
| 107 | func (d *DurationList) ToMilliseconds() []int64 { |
| 108 | values := make([]int64, 0, len(*d)) |
| 109 | for _, t := range *d { |
| 110 | values = append(values, t.Milliseconds()) |
| 111 | } |
| 112 | |
| 113 | return values |
| 114 | } |
| 115 | |
| 116 | // RegisterFlags registers the block storage flags |
| 117 | func (cfg *BlocksStorageConfig) RegisterFlags(f *flag.FlagSet) { |
no outgoing calls