mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
Optimzed & Flutter 3.3.4
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user