diff options
Diffstat (limited to 'ui/src')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java b/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java index e2adecc3..e6ac7092 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java @@ -44,7 +44,7 @@ public class TunnelDetailFragment extends BaseFragment { return requireContext().getString(R.string.transfer_kibibytes, bytes / 1024.0); else if (bytes < 1024 * 1024 * 1024) return requireContext().getString(R.string.transfer_mibibytes, bytes / (1024.0 * 1024.0)); - else if (bytes < 1024 * 1024 * 1024 * 1024) + else if (bytes < 1024 * 1024 * 1024 * 1024L) return requireContext().getString(R.string.transfer_gibibytes, bytes / (1024.0 * 1024.0 * 1024.0)); return requireContext().getString(R.string.transfer_tibibytes, bytes / (1024.0 * 1024.0 * 1024.0) / 1024.0); } |