mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
#100 fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user