This commit is contained in:
lollipopkit
2023-08-07 12:46:22 +08:00
parent df313adf39
commit 81ab841fa5
5 changed files with 120 additions and 29 deletions

View File

@@ -36,14 +36,18 @@ List<Disk> parseDisk(String raw) {
vals[0] = pathCache;
pathCache = '';
}
list.add(Disk(
path: vals[0],
loc: vals[5],
usedPercent: int.parse(vals[4].replaceFirst('%', '')),
used: vals[2],
size: vals[1],
avail: vals[3],
));
try {
list.add(Disk(
path: vals[0],
loc: vals[5],
usedPercent: int.parse(vals[4].replaceFirst('%', '')),
used: vals[2],
size: vals[1],
avail: vals[3],
));
} catch (e) {
continue;
}
}
return list;
}

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 425;
static const int build = 426;
static const String engine = "3.10.6";
static const String buildAt = "2023-08-05 21:55:28.557439";
static const int modifications = 7;
static const String buildAt = "2023-08-06 16:29:23.492978";
static const int modifications = 4;
}