highlight pixelstore rows
This commit is contained in:
@@ -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