Add system load to admin page

This commit is contained in:
2021-04-07 19:30:12 +02:00
parent 58636057d2
commit e78b042691
2 changed files with 6 additions and 3 deletions

View File

@@ -208,6 +208,7 @@ function getStats(order) {
<td>${v.position}</td> <td>${v.position}</td>
<td>${v.reachable}</td> <td>${v.reachable}</td>
<td>${v.unreachable_count}</td> <td>${v.unreachable_count}</td>
<td>${v.load_1_min} ${v.load_5_min} ${v.load_15_min}</td>
<td>${formatDuration(v.latency)}</td> <td>${formatDuration(v.latency)}</td>
<td>${formatDataVolume(v.free_space, 3)}</td> <td>${formatDataVolume(v.free_space, 3)}</td>
<td>${formatDataVolume(v.min_free_space, 3)}</td>` <td>${formatDataVolume(v.min_free_space, 3)}</td>`
@@ -219,6 +220,7 @@ function getStats(order) {
} else { } else {
row.classList.add("highlight_green") row.classList.add("highlight_green")
} }
row.style.textAlign = "left"
p.appendChild(row) p.appendChild(row)
}) })

View File

@@ -81,10 +81,11 @@
<td>Address</td> <td>Address</td>
<td>Pos.</td> <td>Pos.</td>
<td>Reachable</td> <td>Reachable</td>
<td>Err count</td> <td>Errs</td>
<td>Load avg</td>
<td>Latency</td> <td>Latency</td>
<td>Free space</td> <td>Free</td>
<td>Min free space</td> <td>Min free</td>
</tr> </tr>
</thead> </thead>
<tbody id="tbody_peers"></tbody> <tbody id="tbody_peers"></tbody>