highlight pixelstore rows

This commit is contained in:
2020-09-15 14:54:24 +02:00
parent d6e0077565
commit 6b88fe18f7

View File

@@ -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)
})