From bb8cb64da80ded1ceb24b0a807685ab0b8b22748 Mon Sep 17 00:00:00 2001 From: RubenHetKonijn <64010592+RubenHetKonijn@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:24:53 +0200 Subject: [PATCH 1/3] fix #55 This should fix the error being displayed in issue #55 --- milo/plugins/jobMonitor.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/milo/plugins/jobMonitor.lua b/milo/plugins/jobMonitor.lua index a548fcf6..d24d1642 100644 --- a/milo/plugins/jobMonitor.lua +++ b/milo/plugins/jobMonitor.lua @@ -157,7 +157,8 @@ local function createPage(node) row.remaining = math.max(0, row.requested - row.crafted) --_syslog('%d %d %d %d', row.remaining, row.requested, row.total, row.crafted) row.status = (row.status or '') .. - string.format(' %d of %d', row.crafted + row.total, row.total + row.requested) + row.total = row.total or 0 + string.format(' %d of %d', row.crafted + row.total, row.total + row.requested) else row.displayName = ' ' .. row.displayName row.status = (row.status or '') .. string.format(' %d of %d', row.count, row.total) From 2c019914f95a3748ae061c1871b16cbed393eb9a Mon Sep 17 00:00:00 2001 From: RubenHetKonijn <64010592+RubenHetKonijn@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:31:16 +0200 Subject: [PATCH 2/3] add information on how to install packages This commit adds some documentation for how to actually install applications from this repository. --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 6a47fa42..a81bf323 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # opus-apps Applications for Opus OS + +## Installing an application +To install an application, follow these steps +1. Start your OpusOS Computer +2. Go to the System tab on the main menu +3. Find the packages app and open it +4. Select the package you want +5. Select the package and press the `+` button +6. Your application should get installed! + +## Updating your applications +To update your applications, follow these steps +1. Start your OpusOS Computer +2. Go to the System tab on the main menu +3. Find the packages app and open it +4. Press the `Update All` button From 6378f8fe6b4bb7f6463d9eeebecf7a5b16f3bb05 Mon Sep 17 00:00:00 2001 From: RubenHetKonijn <64010592+RubenHetKonijn@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:53:52 +0200 Subject: [PATCH 3/3] address the TODO in the file --- milo/plugins/statsView.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/milo/plugins/statsView.lua b/milo/plugins/statsView.lua index 799c1a23..db996ff3 100644 --- a/milo/plugins/statsView.lua +++ b/milo/plugins/statsView.lua @@ -151,7 +151,7 @@ local function createPage(node) { heading = 'Size', key = 'size', width = 5 }, { heading = 'Used', key = 'used', width = 5 }, { heading = 'Perc', key = 'perc', width = 5 }, - -- TODO: add % to each number + }, sortColumn = 'name', }, @@ -224,7 +224,7 @@ local function createPage(node) name = n.displayName or n.name, size = n.adapter.__size, used = n.adapter.__used, - perc = math.floor(n.adapter.__used / n.adapter.__size * 100), + perc = tostring(math.floor(n.adapter.__used / n.adapter.__size * 100)) .. "%", updated = updated, }) totals.usedSlots = totals.usedSlots + n.adapter.__used