all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] prune sim: fix #3192: by fixing usage of sort()
@ 2020-12-15 12:01 Fabian Ebner
  2020-12-15 12:46 ` [pbs-devel] applied: " Thomas Lamprecht
  0 siblings, 1 reply; 2+ messages in thread
From: Fabian Ebner @ 2020-12-15 12:01 UTC (permalink / raw)
  To: pbs-devel

Signed-off-by: Fabian Ebner <f.ebner@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup] prune sim: fix #3192: by fixing usage of sort()
  2020-12-15 12:01 [pbs-devel] [PATCH proxmox-backup] prune sim: fix #3192: by fixing usage of sort() Fabian Ebner
@ 2020-12-15 12:46 ` Thomas Lamprecht
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2020-12-15 12:46 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion, Fabian Ebner

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

applied, thanks! Did a followup to change it to a shorter arrow function though:

timesOnSingleDay.sort((a, b) => b - a)




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-15 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-15 12:01 [pbs-devel] [PATCH proxmox-backup] prune sim: fix #3192: by fixing usage of sort() Fabian Ebner
2020-12-15 12:46 ` [pbs-devel] applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal