I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 85e5013d authored by mathiasdm's avatar mathiasdm
Browse files

Fixed overflow problem when calculating monthly usage. It now works well (without

getting too wide for the window) up to 1 Tbps.
parent bf50695c
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,6 @@ public class SpeedHelper {
}
public static int calculateMonthlyUsage(int kbytes) {
return (kbytes*3600*24*31)/1000000;
return (int) ((((long)kbytes)*3600*24*31)/1000000);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment