mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
#152 fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
typedef GhId = String;
|
||||
|
||||
extension GhIdX on GhId {
|
||||
String get url => 'https://github.com/$this ';
|
||||
String get url => 'https://github.com/$this';
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ class PsResult {
|
||||
});
|
||||
|
||||
factory PsResult.parse(String raw, {ProcSortMode sort = ProcSortMode.cpu}) {
|
||||
final lines = raw.split('\n');
|
||||
final lines = raw.split('\n').map((e) => e.trim()).toList();
|
||||
if (lines.isEmpty) return PsResult(procs: [], error: null);
|
||||
|
||||
final header = lines[0];
|
||||
@@ -145,6 +145,7 @@ class PsResult {
|
||||
} catch (e, trace) {
|
||||
err += '$line: $e\n';
|
||||
_logger.warning(trace);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user