highlight pixelstore rows
This commit is contained in:
1 parent
d6e0077565
commit
6b88fe18f7
1 file changed
+8
@@ -213,6 +213,14 @@ function getStats(order) {
|
||||
<td>${formatDuration(v.latency)}</td>
|
||||
<td>${formatDataVolume(v.free_space, 3)}</td>
|
||||
<td>${formatDataVolume(v.min_free_space, 3)}</td>`
|
||||
|
||||
if (v.free_space < v.min_free_space) {
|
||||
row.classList.add("highlight_red")
|
||||
} else if (v.free_space < v.min_free_space*2) {
|
||||
row.classList.add("highlight_yellow")
|
||||
} else {
|
||||
row.classList.add("highlight_green")
|
||||
}
|
||||
p.appendChild(row)
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user