fix: disk io (#304)

This commit is contained in:
lollipopkit
2024-03-12 15:10:53 +08:00
parent 13df750473
commit 0ad7b4f8b8
4 changed files with 29 additions and 29 deletions

View File

@@ -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;

View File

@@ -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;
}