Completely apply theme to app

This commit is contained in:
LollipopKit
2021-10-26 13:21:52 +08:00
parent a725604121
commit dad9bfc728
9 changed files with 99 additions and 30 deletions

View File

@@ -111,7 +111,16 @@ class ServerProvider extends BusyProvider {
final time2 = DateTime.now();
logger.info(
'Connected to [${info.name}] in [${time2.difference(time1).toString()}].');
} else {
try {
await client.execute('ls');
} catch (e) {
await client.connect();
logger.warning('[${info.name}] has error: $e \nTrying to reconnect.');
rethrow;
}
}
final cpu = await client.execute(
"top -bn1 | grep load | awk '{printf \"%.2f\", \$(NF-2)}'") ??
'0';