implement dataUnits finally
authorJoey Hess <joeyh@joeyh.name>
Thu, 5 May 2022 19:22:11 +0000 (15:22 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 5 May 2022 19:25:11 +0000 (15:25 -0400)
commitd1cce869ede0cb9e5a01e83ce2dbbbd740182817
treeabb1fb44e6cb58b853314d0c1e5b952126d85975
parent3d8af645270549bc8a120421da0a455a4c619d85
implement dataUnits finally

Added support for "megabit" and related bandwidth units in
annex.stalldetection and everywhere else that git-annex parses data units.

Note that the short form is "Mbit" not "Mb" because that differs from "MB"
only in case, and git-annex parses units case-insensitively. It would be
horrible if two different versions of git-annex parsed the same value
differently, so I don't think "Mb" can be supported.

See comment for bonus sad story from my childhood.

Sponsored-by: Nicholas Golder-Manning
CHANGELOG
Utility/DataUnits.hs
doc/todo/Mbps.mdwn