opt. & new

- opt.: docker page perf
- new: docker stats
This commit is contained in:
lollipopkit
2023-08-02 23:07:11 +08:00
parent 336c31e48d
commit 0038ed347f
10 changed files with 215 additions and 136 deletions

View File

@@ -245,8 +245,7 @@ class ServerProvider extends BusyProvider {
if (s.client == null) return;
// run script to get server status
raw =
await s.client!.run("sh $shellPath -${shellFuncStatus.flag}").string;
raw = await s.client!.run(shellFuncStatus.exec).string;
segments = raw.split(seperator).map((e) => e.trim()).toList();
if (raw.isEmpty || segments.length != CmdType.values.length) {
s.state = ServerState.failed;