<div dir="auto">Thanks. Can you resend this with your Signed-off-by line?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 26, 2020, 07:12 François Guerraz <<a href="mailto:kubrick@fgv6.net">kubrick@fgv6.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The default type for literal numerals is int, not long it, therefore<br>
1024*1024*1024*1024<br>
overflows and<br>
    bytes < 1024*1024*1024*1024<br>
is always false.<br>
Therefore, GiBi is never displayed and switches to TiBi immediately.<br>
---<br>
diff --git a/app/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java<br>
b/app/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java<br>
index 57e0d8e..bc0726a 100644<br>
--- a/app/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java<br>
+++ b/app/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.java<br>
@@ -115,7 +115,7 @@ public class TunnelDetailFragment extends BaseFragment {<br>
             return<br>
getContext().getString(R.string.transfer_kibibytes, bytes/1024.0);<br>
         else if (bytes < 1024*1024*1024)<br>
             return<br>
getContext().getString(R.string.transfer_mibibytes,<br>
bytes/(1024.0*1024.0));<br>
-        else if (bytes < 1024*1024*1024*1024)<br>
+        else if (bytes < 1024*1024*1024*1024L)<br>
             return<br>
getContext().getString(R.string.transfer_gibibytes,<br>
bytes/(1024.0*1024.0*1024.0));<br>
         return getContext().getString(R.string.transfer_tibibytes,<br>
bytes/(1024.0*1024.0*1024.0)/1024.0);<br>
     }<br>
_______________________________________________<br>
WireGuard mailing list<br>
<a href="mailto:WireGuard@lists.zx2c4.com" target="_blank" rel="noreferrer">WireGuard@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/wireguard" rel="noreferrer noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/wireguard</a><br>
</blockquote></div>