Commit 8e33f5d
authored
show remaining time in CLI as h-m-s instead of seconds #2454 (#1134)
## Checklist
- [x] I have read the [contribution
guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md)
- [x] reference issue for this pull request: [ Show remaining time in a
human-readable way #2454 ](ooni/probe#2454)
- [ ] if you changed anything related to how experiments work and you
need to reflect these changes in the ooni/spec repository, please link
to the related ooni/spec pull request: <!-- add URL here -->
- [ ] if you changed code inside an experiment, make sure you bump its
version number
<!-- Reminder: Location of the issue tracker:
https://github.com/ooni/probe -->
## Description
Formatted remaining time in CLI (run websites) as standard time.Duration
format, for example shows (1h7m19.018s) left instead of seconds for
durations>=60 sec. Propose rounding to time.Millisecond instead of
"%.2f", for cleaner code; only "time" package used, no extra
dependencies.1 parent 8bf3ce9 commit 8e33f5d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments