Skip to content
This repository was archived by the owner on May 10, 2023. It is now read-only.

Commit 4b6fd46

Browse files
authored
Update slmon.py
Add three minutes mark to display Change the background colour to white for better visibility
1 parent 2b25577 commit 4b6fd46

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/slmon/apps/slmon/slmon.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ def colorLegend(htmlfile):
137137
htmlfile.write("<p><center>Latencies:<br>\n" \
138138
"<table cellpadding='2' cellspacing='1' border='0'" \
139139
" bgcolor='#000000'>\n<tr>\n" \
140-
"<td bgcolor='#cc99ff'>&nbsp;&lt;30 m&nbsp;</td>\n" \
140+
"<td bgcolor='#ffffff'>&nbsp;&lt; 3 m&nbsp;</td>\n" \
141+
"<td bgcolor='#cc99ff'>&nbsp;&lt;30 m&nbsp;</td>\n" \
141142
"<td bgcolor='#3399ff'>&nbsp;&lt; 1 h&nbsp;</td>\n" \
142143
"<td bgcolor='#00ff00'>&nbsp;&lt; 2 h&nbsp;</td>\n" \
143144
"<td bgcolor='#ffff00'>&nbsp;&lt; 6 h&nbsp;</td>\n" \
@@ -175,7 +176,8 @@ def getColor(delta):
175176
elif delay > 7200: return '#ffff00'
176177
elif delay > 3600: return '#00ff00'
177178
elif delay > 1800: return '#3399ff'
178-
else: return '#cc99ff'
179+
elif delay > 180: return '#cc99ff'
180+
else: return '#ffffff'
179181

180182
TDdummy = "<td align='center' bgcolor='%s'><tt>n/a</tt></td>"
181183

0 commit comments

Comments
 (0)