mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
fix: disk io (#304)
This commit is contained in:
@@ -65,8 +65,8 @@ class DiskIO extends TimeSeq<DiskIOPiece> {
|
||||
}
|
||||
|
||||
(double?, double?) _getSpeed(String dev) {
|
||||
final old = pre.firstWhereOrNull((e) => e.dev == '/dev/$dev');
|
||||
final new_ = now.firstWhereOrNull((e) => e.dev == '/dev/$dev');
|
||||
final old = pre.firstWhereOrNull((e) => e.dev == dev);
|
||||
final new_ = now.firstWhereOrNull((e) => e.dev == dev);
|
||||
if (old == null || new_ == null) return (null, null);
|
||||
final sectorsRead = new_.sectorsRead - old.sectorsRead;
|
||||
final sectorsWrite = new_.sectorsWrite - old.sectorsWrite;
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 798;
|
||||
static const String engine = "3.19.2";
|
||||
static const String buildAt = "2024-03-09 18:43:21";
|
||||
static const int build = 802;
|
||||
static const String engine = "3.19.3";
|
||||
static const String buildAt = "2024-03-12 15:02:14";
|
||||
static const int modifications = 2;
|
||||
static const int script = 40;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user