HMCL-dev / HMCL-PE

Hello Minecraft! Launcher for Android
GNU General Public License v3.0
751 stars 96 forks source link

Divided by zero #142

Closed lgc2333 closed 9 months ago

lgc2333 commented 1 year ago

Describe the bug 玩着玩着突然崩了

To Reproduce 不太清楚 点什么的时候突然就崩了

Paste logs here

``` Build version: 1.0.0 Build date: 1981-01-01 01:01:02 Current date: 2022-12-26 15:20:08 Device: LGE LM-V500 OS version: Android 11 (SDK 30) Stack trace: java.lang.ArithmeticException: divide by zero at com.tungsten.hmclpe.utils.io.NetSpeed.getNetSpeed(NetSpeed.java:20) at com.tungsten.hmclpe.utils.io.NetSpeedTimer$SpeedTimerTask.run(NetSpeedTimer.java:89) at java.util.TimerThread.mainLoop(Timer.java:562) at java.util.TimerThread.run(Timer.java:512) ```

Expected behavior hmclpe不崩

Screenshots no

Smartphone (please complete the following information): 见log

Additional context no