mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-05 15:55:19 +01:00
opt.
This commit is contained in:
@@ -130,12 +130,7 @@ final class PveLxc extends PveResIface implements PveCtrlIface {
|
||||
@override
|
||||
String get summary {
|
||||
if (available) {
|
||||
return uptime.secondsToDuration().toAgoStr(
|
||||
day: l10n.day,
|
||||
hour: l10n.hour,
|
||||
minute: l10n.minute,
|
||||
second: l10n.second,
|
||||
);
|
||||
return uptime.secondsToDuration().toAgoStr;
|
||||
}
|
||||
return l10n.stopped;
|
||||
}
|
||||
@@ -213,12 +208,7 @@ final class PveQemu extends PveResIface implements PveCtrlIface {
|
||||
@override
|
||||
String get summary {
|
||||
if (available) {
|
||||
return uptime.secondsToDuration().toAgoStr(
|
||||
day: l10n.day,
|
||||
hour: l10n.hour,
|
||||
minute: l10n.minute,
|
||||
second: l10n.second,
|
||||
);
|
||||
return uptime.secondsToDuration().toAgoStr;
|
||||
}
|
||||
return l10n.stopped;
|
||||
}
|
||||
@@ -268,12 +258,7 @@ final class PveNode extends PveResIface {
|
||||
|
||||
String get topRight {
|
||||
if (isRunning) {
|
||||
return uptime.secondsToDuration().toAgoStr(
|
||||
day: l10n.day,
|
||||
hour: l10n.hour,
|
||||
minute: l10n.minute,
|
||||
second: l10n.second,
|
||||
);
|
||||
return uptime.secondsToDuration().toAgoStr;
|
||||
}
|
||||
return l10n.stopped;
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ final class WakeOnLanCfg {
|
||||
return (err, valid);
|
||||
}
|
||||
|
||||
Future<void> wake() async {
|
||||
Future<void> wake() {
|
||||
if (!validate().$2) {
|
||||
throw Exception('Invalid WakeOnLanCfg');
|
||||
}
|
||||
@@ -48,7 +48,7 @@ final class WakeOnLanCfg {
|
||||
final mac_ = MACAddress(mac);
|
||||
final pwd_ = pwd != null ? SecureONPassword(pwd!) : null;
|
||||
final obj = WakeOnLAN(ip_, mac_, password: pwd_);
|
||||
await obj.wake(
|
||||
return obj.wake(
|
||||
repeat: 3,
|
||||
repeatDelay: const Duration(milliseconds: 500),
|
||||
);
|
||||
|
||||
@@ -283,7 +283,7 @@ class ServerProvider extends ChangeNotifier {
|
||||
// message: 'Wake on lan failed: $e',
|
||||
// );
|
||||
// _setServerState(s, ServerConn.failed);
|
||||
// Loggers.app.warning('Wake on lan failed', e);
|
||||
Loggers.app.warning('Wake on lan failed', e);
|
||||
// return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 908;
|
||||
static const int build = 909;
|
||||
static const String engine = "3.22.0";
|
||||
static const String buildAt = "2024-05-22 22:25:06";
|
||||
static const int modifications = 4;
|
||||
static const String buildAt = "2024-05-23 00:45:04";
|
||||
static const int modifications = 11;
|
||||
static const int script = 48;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user