Optimzed & Flutter 3.3.4

This commit is contained in:
Junyuan Feng
2022-10-21 17:50:13 +08:00
parent 06302d7162
commit 7f1bd06422
19 changed files with 153 additions and 123 deletions

View File

@@ -39,9 +39,9 @@ class NetSpeed {
String speedOut({String? device}) {
if (old[0].device == '' || now[0].device == '') return '0kb/s';
final idx = deviceIdx(device);
final speedInBytesPerSecond =
final speedOutBytesPerSecond =
(now[idx].bytesOut - old[idx].bytesOut) / timeDiff;
return buildStandardOutput(speedInBytesPerSecond);
return buildStandardOutput(speedOutBytesPerSecond);
}
int deviceIdx(String? device) {