diff options
author | Jo-Philipp Wich <jo@mein.io> | 2024-05-27 14:09:53 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2024-05-27 14:10:50 +0200 |
commit | 2d2e5c0689b3483b22d033af1da9d33afeedf33e (patch) | |
tree | 4468e58a1d46dd1af5d5fddfcf9553eb9888caa9 /applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | |
parent | fcc4cc942adfb4a6019d04ca0e6b446a4cd6416f (diff) |
luci-app-opkg: populate alternative package size if needed
Populate the raw size value with the alternative size if the package
size is unavailable.
Fixes: #7139
Fixes: 63e5d38db0 ("luci-app-opkg: fix sorting by size column")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js')
-rw-r--r-- | applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js index 246c5cfce8..bb21cca687 100644 --- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js +++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js @@ -310,9 +310,9 @@ function display(pattern) currentDisplayRows.push([ name, ver, - [ pkg.size || 0, - pkg.size ? '%1024mB'.format(pkg.size) - : (altsize ? '~%1024mB'.format(altsize) : '-') ], + [ pkg.size || altsize || 0, + pkg.size ? '%1024mB'.format(pkg.size) + : (altsize ? '~%1024mB'.format(altsize) : '-') ], desc, btn ]); |