mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-04 15:25:10 +01:00
fix: follow system color scheme
This commit is contained in:
@@ -75,29 +75,28 @@ class OneTimeCpuStatus extends TimeSeqIface<OneTimeCpuStatus> {
|
||||
bool same(OneTimeCpuStatus other) => id == other.id;
|
||||
|
||||
static List<OneTimeCpuStatus> parse(String raw) {
|
||||
final List<OneTimeCpuStatus> cpus = [];
|
||||
final List<OneTimeCpuStatus> cpus = [];
|
||||
|
||||
for (var item in raw.split('\n')) {
|
||||
if (item == '') break;
|
||||
final id = item.split(' ').first;
|
||||
final matches = item.replaceFirst(id, '').trim().split(' ');
|
||||
cpus.add(
|
||||
OneTimeCpuStatus(
|
||||
id,
|
||||
int.parse(matches[0]),
|
||||
int.parse(matches[1]),
|
||||
int.parse(matches[2]),
|
||||
int.parse(matches[3]),
|
||||
int.parse(matches[4]),
|
||||
int.parse(matches[5]),
|
||||
int.parse(matches[6]),
|
||||
),
|
||||
);
|
||||
for (var item in raw.split('\n')) {
|
||||
if (item == '') break;
|
||||
final id = item.split(' ').first;
|
||||
final matches = item.replaceFirst(id, '').trim().split(' ');
|
||||
cpus.add(
|
||||
OneTimeCpuStatus(
|
||||
id,
|
||||
int.parse(matches[0]),
|
||||
int.parse(matches[1]),
|
||||
int.parse(matches[2]),
|
||||
int.parse(matches[3]),
|
||||
int.parse(matches[4]),
|
||||
int.parse(matches[5]),
|
||||
int.parse(matches[6]),
|
||||
),
|
||||
);
|
||||
}
|
||||
return cpus;
|
||||
}
|
||||
return cpus;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
final _bsdCpuPercentReg = RegExp(r'(\d+\.\d+)%');
|
||||
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 688;
|
||||
static const String engine = "3.16.4";
|
||||
static const String buildAt = "2023-12-21 16:19:00";
|
||||
static const int modifications = 6;
|
||||
static const int script = 33;
|
||||
static const int build = 693;
|
||||
static const String engine = "3.16.5";
|
||||
static const String buildAt = "2023-12-29 17:24:27";
|
||||
static const int modifications = 5;
|
||||
static const int script = 34;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user