0.1.4: soglia rossa backup a 8 giorni
This commit is contained in:
1 parent
887d3a6888
commit
29a63a74d4
4 files changed
+10
-6
No files matched your search
@@ -34,7 +34,7 @@ Requisiti: SDK Sailfish in `~/SailfishOS`, build engine Docker.
|
||||
## Installazione sul telefono
|
||||
|
||||
```sh
|
||||
devel-su rpm -Uvh harbour-server-0.1.3-1.aarch64.rpm
|
||||
devel-su rpm -Uvh harbour-server-0.1.4-1.aarch64.rpm
|
||||
```
|
||||
|
||||
Poi, all'apertura: indicare indirizzo (es. `http://192.168.3.21:8792`) e token.
|
||||
|
||||
@@ -46,13 +46,13 @@ Page {
|
||||
if (a < 0) return -1
|
||||
return Math.floor(a / 24 + 0.5)
|
||||
}
|
||||
// Soglie (decisione utente): verde 1-3 giorni, giallo 4-6, rosso da 7 in su.
|
||||
// Soglie (decisione utente): verde 1-3 giorni, giallo 4-7, rosso da 8 in su.
|
||||
function backupLevel() {
|
||||
if (backupResult() === "") return 1
|
||||
if (backupResult() !== "success") return 2
|
||||
var g = backupDays()
|
||||
if (g < 0) return 1
|
||||
if (g >= 7) return 2
|
||||
if (g >= 8) return 2
|
||||
if (g >= 4) return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
Name: harbour-server
|
||||
Summary: Parametri del server in una schermata
|
||||
Version: 0.1.3
|
||||
Version: 0.1.4
|
||||
Release: 1
|
||||
Group: Qt/Qt
|
||||
License: MIT
|
||||
@@ -23,6 +23,10 @@ schermata sola. Il formato consumato (schema status/1) non dipende dalla
|
||||
macchina: qualunque host che serva lo stesso JSON funziona senza modifiche.
|
||||
|
||||
%changelog
|
||||
* Wed Oct 28 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.4-1
|
||||
- Card Backup: soglia rossa spostata da 7 a 8 giorni (verde 1-3, giallo 4-7,
|
||||
rosso da 8 in su), così la domenica sera — con Borg settimanale — la card
|
||||
non anticipa l'allarme di poche ore
|
||||
* Wed Oct 28 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.3-1
|
||||
- Copertina (widget): CPU, RAM e disco con le percentuali d'uso in tre righe,
|
||||
colorate con le stesse soglie delle card (giallo da 85%, rosso da 95%);
|
||||
|
||||
+2
-2
@@ -15,9 +15,9 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
||||
// AppConfigLocation = ~/.config/harbour/server (zona persistente).
|
||||
app->setOrganizationName(QStringLiteral("harbour"));
|
||||
app->setApplicationName(QStringLiteral("server"));
|
||||
app->setApplicationVersion(QStringLiteral("0.1.3"));
|
||||
app->setApplicationVersion(QStringLiteral("0.1.4"));
|
||||
|
||||
qDebug() << "harbour-server v0.1.3 build" << __DATE__ << __TIME__;
|
||||
qDebug() << "harbour-server v0.1.4 build" << __DATE__ << __TIME__;
|
||||
|
||||
Settings settings;
|
||||
StatusClient status(&settings);
|
||||
|
||||
Reference in new issue
Block a user