cockpit-project/cockpit — pull request #325 by stefwalter (2014-03-26 09:08:26+00:00)
Title: Memory display

Fix issues in #315 with memory display listing the suffix twice in a pair like:

0.0 MB / 15.0 MB

To do this we add a new ```$cockpit.format_bytes()``` implementation, which allows us to pass a suffix in and we use that to format the lesser value with the same suffix. Then we don't need to display the suffix twice.