From 97a324b4b5d76994dc84e98934805c944e9cc34b Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 10 Mar 2015 19:38:39 +0100 Subject: [PATCH] Use Kibibyte units to be consistent with syncthing. --- .../test/syncthing/RestApiTest.java | 8 ++++---- src/main/res/values/strings.xml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/androidTest/java/com/nutomic/syncthingandroid/test/syncthing/RestApiTest.java b/src/androidTest/java/com/nutomic/syncthingandroid/test/syncthing/RestApiTest.java index f0cc51dd..d39a47d9 100644 --- a/src/androidTest/java/com/nutomic/syncthingandroid/test/syncthing/RestApiTest.java +++ b/src/androidTest/java/com/nutomic/syncthingandroid/test/syncthing/RestApiTest.java @@ -93,14 +93,14 @@ public class RestApiTest extends AndroidTestCase { @SmallTest public void testReadableFileSize() { - assertEquals("1 MB", RestApi.readableFileSize(getContext(), 1048576)); - assertEquals("1 GB", RestApi.readableFileSize(getContext(), 1073741824)); + assertEquals("1 MiB", RestApi.readableFileSize(getContext(), 1048576)); + assertEquals("1 GiB", RestApi.readableFileSize(getContext(), 1073741824)); } @SmallTest public void testGetReadableTransferRate() { - assertEquals("1 Mb/s", RestApi.readableTransferRate(getContext(), 1048576)); - assertEquals("1 Gb/s", RestApi.readableTransferRate(getContext(), 1073741824)); + assertEquals("1 Mib/s", RestApi.readableTransferRate(getContext(), 1048576)); + assertEquals("1 Gib/s", RestApi.readableTransferRate(getContext(), 1073741824)); } @MediumTest diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index 68d38b2b..aa50a972 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -321,19 +321,19 @@ Please report any problems you encounter via Github. B - KB - MB - GB - TB + KiB + MiB + GiB + TiB b/s - Kb/s - Mb/s - Gb/s - Tb/s + Kib/s + Mib/s + Gib/s + Tib/s