mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 09:32:36 -05:00
[GH-ISSUE #767] Sites overview Data In/Data Out does not sort correctly #6414
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thijsvanloef on GitHub (May 22, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/767
Hello, this is my first issue here, so please let me know if you need any more information.
Issue
Data Out and Data In sorting option in the "Manage Sites" tab does not actually seem to be sorting on most data in/out based on total number of bytes, but on the higher number.
Behaviour
Sorted from smallest to largest "Data Out" :

Sorted from largest to smallest "Data Out":

Expected behaviour
I expect it to sort correctly based on the total number of bytes (taking into account GB/MB conversion) instead of the value of the number.
System information:
OS: Ubuntu 24.04.2
Installation: Docker
Pangolin Version: 1.4.0
Treafik Version: 3.3.6
Gerbil Version: 1.0.0
Crowdsec Version: v1.6.8-f209766e
@oschwartz10612 commented on GitHub (May 24, 2025):
Hi! Yep that is a bug. If someone wants to jump in and fix this should be pretty easy. If not we can tackle it sometime soon.