]> git.proxmox.com Git - pmg-gui.git/commitdiff
dashboard: show ten of the current top receiver
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 16:16:30 +0000 (17:16 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Feb 2024 16:25:54 +0000 (17:25 +0100)
not only five, as with the higher panels we already got enough space,
as one row needs roughly 24 px, lower top/bottom padding a bit to get
~242 of space, fitting ten entries nicely.

The performance aspect should not matter much, getting five or ten
entries from a DB like PostgreSQL is really not costing much,
especially as with the count query in use the hard work has already
been done anyway.

Makes the top-receiver panel look a bit more coherent compared to the
node info one beside it.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/Dashboard.js

index d03510edfbb50e1051d4271952d401a4b593de90..9c51734b4ce0db27b6992a25fa597643b3959ceb 100644 (file)
@@ -283,6 +283,7 @@ Ext.define('PMG.Dashboard', {
                    url: '/api2/json/statistics/recentreceivers',
                    extraParams: {
                        hours: '{hours}',
+                       limit: 10, // make this also configurable?
                    },
                },
                fields: [
@@ -427,7 +428,7 @@ Ext.define('PMG.Dashboard', {
            iconCls: 'fa fa-list',
            title: gettext('Top Receivers'),
 
-           bodyPadding: '20 20 20 20',
+           bodyPadding: '10 10 10 10',
            layout: {
                type: 'vbox',
                pack: 'center',