Start time is rounded down to next step
(start, _, step uint64, instant bool)
| 199 | |
| 200 | // Start time is rounded down to next step |
| 201 | func alignStart(start, _, step uint64, instant bool) uint64 { |
| 202 | if step == 0 { |
| 203 | return 0 |
| 204 | } |
| 205 | if instant { |
| 206 | return start |
| 207 | } |
| 208 | |
| 209 | return start - start%step |
| 210 | } |
| 211 | |
| 212 | // End time is rounded up to next step |
| 213 | func alignEnd(_, end, step uint64, instant bool) uint64 { |
no outgoing calls
no test coverage detected