[pbs-devel] [PATCH proxmox-backup] prune sim: fix #3192: by fixing usage of sort()

Fabian Ebner f.ebner at proxmox.com
Tue Dec 15 13:01:33 CET 2020


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---
 docs/prune-simulator/prune-simulator.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/prune-simulator/prune-simulator.js b/docs/prune-simulator/prune-simulator.js
index 5533c2d6..fd68b796 100644
--- a/docs/prune-simulator/prune-simulator.js
+++ b/docs/prune-simulator/prune-simulator.js
@@ -452,7 +452,7 @@ Ext.onReady(function() {
 		// ordering here and iterating backwards through days
 		// ensures that everything is ordered
 		timesOnSingleDay.sort(function(a, b) {
-		    return a < b;
+		    return b - a;
 		});
 
 		let backups = [];
-- 
2.20.1





More information about the pbs-devel mailing list