1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/cli/command/formatter
Yong Tang 4e7e3919ce Restrict size to 2 fractional digits for docker images
This fix tries to address the issue raised in 26300. Previously
`docker images` will use `HumanSize()` to display the size which
has a fixed precision of 4 (thus 3 fractional digits). This
could be problematic in certain languages (e.g. , German, see
26300) as `.` may be interpreted as thousands-separator in number.

This fix use `CustomSize()` instead and limit the precision to 3
(thus 2 fractional digits).

This fix has been tested manually.

This fix fixes 26300.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-08 18:26:50 -07:00
..
container.go Restrict size to 2 fractional digits for docker images 2016-09-08 18:26:50 -07:00
container_test.go Fix a test that expects whitespace at the end of the line. 2016-09-08 15:50:14 -04:00
custom.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
custom_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
formatter.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
image.go Restrict size to 2 fractional digits for docker images 2016-09-08 18:26:50 -07:00
image_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
network.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
network_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
volume.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00
volume_test.go Move api/client -> cli/command 2016-09-08 15:46:29 -04:00