From 29a63a74d46de2c16c5642b820530b0537009a79 Mon Sep 17 00:00:00 2001 From: Carlo Baratto Date: Thu, 29 Oct 2026 07:43:48 +0100 Subject: [PATCH] 0.1.4: soglia rossa backup a 8 giorni --- README.md | 2 +- qml/pages/StatusPage.qml | 4 ++-- rpm/harbour-server.spec | 6 +++++- src/main.cpp | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fe39530..1d5c088 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/qml/pages/StatusPage.qml b/qml/pages/StatusPage.qml index d40b4fe..0608638 100644 --- a/qml/pages/StatusPage.qml +++ b/qml/pages/StatusPage.qml @@ -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 } diff --git a/rpm/harbour-server.spec b/rpm/harbour-server.spec index 9e27dd2..e197f44 100644 --- a/rpm/harbour-server.spec +++ b/rpm/harbour-server.spec @@ -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 - 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 - 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%); diff --git a/src/main.cpp b/src/main.cpp index 2cd2640..da25f95 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);