mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
opt.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -93,7 +93,7 @@ class Proc {
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return jsonEncoder.convert(toJson());
|
||||
return Miscs.jsonEncoder.convert(toJson());
|
||||
}
|
||||
|
||||
String get binary {
|
||||
|
||||
Reference in New Issue
Block a user