]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: dashboard: remove 'wobbling' of tasks that have the same duration
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 25 Jun 2020 08:45:52 +0000 (10:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Jun 2020 07:13:33 +0000 (09:13 +0200)
by sorting them by upid after sorting by duration

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/dashboard/LongestTasks.js

index 76238e5ba5740fd22c9421418f4e2c915bdb1b4e..d076d5fad6ec1bb9ddcb843b020c8808e89f1d83 100644 (file)
@@ -56,10 +56,16 @@ Ext.define('PBS.LongestTasks', {
        type: 'diff',
        autoDestroy: true,
        autoDestroyRstore: true,
-       sorters: {
-           property: 'duration',
-           direction: 'DESC',
-       },
+       sorters: [
+           {
+               property: 'duration',
+               direction: 'DESC',
+           },
+           {
+               property: 'upid',
+               direction: 'ASC',
+           },
+       ],
        rstore: {
            storeid: 'proxmox-tasks-dash',
            type: 'store',