Commit Graph

4 Commits

Author SHA1 Message Date
Nikolaj Kuntner 0b3124821f
bytes formatting simplify (#6021)
* init

* Add dash in README

* add more test cases

* whitespace around ==

* explicit return

* add another large test case
2021-05-26 11:11:44 -07:00
Ruslan Skorb 9e21716965
Add format_bytes(bytes:) function to convert bytes to human readable string. (#5449) 2021-05-24 22:14:29 -07:00
Richard Kiss 569ca16f50 Use `sed` to change imports from `src` to `chia`. 2021-04-04 21:41:39 -07:00
dustinface 6a1862fbc8
src|test: Improve time estimate in `cmds.farm_funcs.summary()` (#1528)
* util|test: Add misc.py with format_minutes as first method

Format `minutes` into a string with the format:

`unit` and `sub-unit`

where `unit` and `sub-unit` can be:
- years (`unit` only)
- months
- weeks
- days
- hours
- minutes

* cmds: Use `format_minutes` in farm_funcs.summary
2021-03-27 00:18:19 -07:00