This commit is contained in:
lollipopkit
2023-08-05 12:23:29 +08:00
parent d88a078cd6
commit 3405172d76
6 changed files with 30 additions and 28 deletions

View File

@@ -56,6 +56,7 @@ Future<SSHClient> genClient(
timeout: const Duration(seconds: 5),
);
} catch (e) {
if (spi.alterUrl == null) rethrow;
try {
spi.fromStringUrl();
socket = await SSHSocket.connect(

View File

@@ -47,14 +47,14 @@ class Cpus extends TimeSeq<OneTimeCpuStatus> {
}
class OneTimeCpuStatus extends TimeSeqIface<OneTimeCpuStatus> {
late String id;
late int user;
late int sys;
late int nice;
late int idle;
late int iowait;
late int irq;
late int softirq;
final String id;
final int user;
final int sys;
final int nice;
final int idle;
final int iowait;
final int irq;
final int softirq;
OneTimeCpuStatus(
this.id,

View File

@@ -2,8 +2,8 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 413;
static const int build = 414;
static const String engine = "3.10.6";
static const String buildAt = "2023-08-04 23:23:25.517350";
static const String buildAt = "2023-08-05 12:11:05.935203";
static const int modifications = 5;
}

View File

@@ -124,6 +124,7 @@ class _HomePageState extends State<HomePage>
),
body: PageView.builder(
controller: _pageController,
itemCount: AppTab.values.length,
itemBuilder: (_, index) => AppTab.values[index].page,
onPageChanged: (value) {
if (!_switchingPage) {