This commit is contained in:
lollipopkit
2023-09-13 14:28:02 +08:00
parent 6c84d2f52b
commit 278d5984b2
55 changed files with 528 additions and 481 deletions

View File

@@ -20,7 +20,7 @@ Conn? parseConn(String raw) {
final idx = lines.lastWhere((element) => element.startsWith('Tcp:'),
orElse: () => '');
if (idx != '') {
final vals = idx.split(numReg);
final vals = idx.split(Miscs.numReg);
return Conn(
maxConn: vals[5].i,
active: vals[6].i,

View File

@@ -27,7 +27,7 @@ List<Disk> parseDisk(String raw) {
if (item.isEmpty) {
continue;
}
final vals = item.split(numReg);
final vals = item.split(Miscs.numReg);
if (vals.length == 1) {
pathCache = vals[0];
continue;

View File

@@ -93,7 +93,7 @@ class Proc {
@override
String toString() {
return jsonEncoder.convert(toJson());
return Miscs.jsonEncoder.convert(toJson());
}
String get binary {