diff --git a/README.md b/README.md index a7c98c3..bbbe6ed 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Requisiti: SDK Sailfish in `~/SailfishOS`, build engine Docker. ## Installazione sul telefono ```sh -devel-su rpm -Uvh harbour-server-0.3.0-1.aarch64.rpm +devel-su rpm -Uvh harbour-server-0.3.1-1.aarch64.rpm ``` Poi, all'apertura: indicare indirizzo (es. `http://192.168.3.21:8792`) e token. diff --git a/qml/pages/CpuPage.qml b/qml/pages/CpuPage.qml index 9796254..d5de0be 100644 --- a/qml/pages/CpuPage.qml +++ b/qml/pages/CpuPage.qml @@ -43,12 +43,28 @@ Page { anchors.fill: parent model: page.list() + PullDownMenu { + MenuItem { + text: qsTr("Aggiorna") + onClicked: statusClient.refresh() + } + } + header: Column { width: view.width spacing: Theme.paddingSmall PageHeader { title: qsTr("CPU") } + Label { + x: Theme.paddingLarge + width: parent.width - 2 * Theme.paddingLarge + text: statusClient.busy ? qsTr("aggiornamento…") + : qsTr("aggiornato alle ") + statusClient.fetchedAt + font.pixelSize: Theme.fontSizeExtraSmall + color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor + } + Label { x: Theme.paddingLarge width: parent.width - 2 * Theme.paddingLarge diff --git a/qml/pages/ProcessPage.qml b/qml/pages/ProcessPage.qml index 0042489..9b8e7c4 100644 --- a/qml/pages/ProcessPage.qml +++ b/qml/pages/ProcessPage.qml @@ -38,12 +38,28 @@ Page { anchors.fill: parent model: page.list() + PullDownMenu { + MenuItem { + text: qsTr("Aggiorna") + onClicked: statusClient.refresh() + } + } + header: Column { width: view.width spacing: Theme.paddingSmall PageHeader { title: qsTr("Memoria") } + Label { + x: Theme.paddingLarge + width: parent.width - 2 * Theme.paddingLarge + text: statusClient.busy ? qsTr("aggiornamento…") + : qsTr("aggiornato alle ") + statusClient.fetchedAt + font.pixelSize: Theme.fontSizeExtraSmall + color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor + } + Label { x: Theme.paddingLarge width: parent.width - 2 * Theme.paddingLarge diff --git a/rpm/harbour-server.spec b/rpm/harbour-server.spec index 3228409..6b89f74 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.3.0 +Version: 0.3.1 Release: 1 Group: Qt/Qt License: MIT @@ -23,6 +23,9 @@ schermata sola. Il formato consumato (schema status/1) non dipende dalla macchina: qualunque host che serva lo stesso JSON funziona senza modifiche. %changelog +* Sun Nov 22 2026 Carlo Baratto - 0.3.1-1 +- Pagine di dettaglio CPU e Memoria: menu pull-down "Aggiorna" e riga con + l'ora dell'ultimo aggiornamento (o "aggiornamento…" mentre è in corso) * Sat Oct 31 2026 Carlo Baratto - 0.3.0-1 - Card CPU toccabile: apre CpuPage con i consumatori di CPU ordinati dal più grande, in percentuale sulla capacità totale del sistema diff --git a/src/main.cpp b/src/main.cpp index fd46f6b..215bfd6 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.3.0")); + app->setApplicationVersion(QStringLiteral("0.3.1")); - qDebug() << "harbour-server v0.3.0 build" << __DATE__ << __TIME__; + qDebug() << "harbour-server v0.3.1 build" << __DATE__ << __TIME__; Settings settings; StatusClient status(&settings);