summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruser <user@node5.net>2024-03-23 23:59:26 +0100
committeruser <user@node5.net>2024-03-23 23:59:26 +0100
commitd5b39d63a143fd1634d54f65932ad4899e71aad6 (patch)
tree843f37a6f635711478016baf1ace155edfac67c7 /src
parentc5b99af48000aabd2c0ca580806e53b2f054668a (diff)
Revert "fix interlace colors"
This reverts commit c5b99af48000aabd2c0ca580806e53b2f054668a.
Diffstat (limited to 'src')
-rw-r--r--src/ssh_node5_net.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ssh_node5_net.py b/src/ssh_node5_net.py
index 47a7456..77bd36b 100644
--- a/src/ssh_node5_net.py
+++ b/src/ssh_node5_net.py
@@ -76,7 +76,7 @@ def index():
histogram_chartjs = json.dumps([{
'label': str(ip),
'data': data,
- 'backgroundColor': f'hsl({abs(180 if index%2 else 0 - (index / len(by_ip) * 360))}, 50%, 50%)',
+ 'backgroundColor': f'hsl({abs(360 if index%2 else 0 - (index / len(by_ip) * 360))}, 50%, 50%)',
'fill': 'start'
} for index, (ip, data) in enumerate(by_ip.items())])