Open JonathanWilson1 opened 4 years ago
Line 188 in MZDownloadManager.swift
MZDownloadManager.swift
In my case the casting of 0.8359183 to an Int64 produces 0 which then shows Fatal error: Division by zero
0.8359183
0
Fatal error: Division by zero
I think there is room for improving this code by cleaning up all the casting, but maybe a simple speed > 0 check is enough?
speed > 0
Line 188 in
MZDownloadManager.swift
In my case the casting of
0.8359183
to an Int64 produces0
which then showsFatal error: Division by zero
I think there is room for improving this code by cleaning up all the casting, but maybe a simple
speed > 0
check is enough?