This commit is contained in:
Ahmed Zamil 2024-06-28 12:06:36 +03:00
parent 5c7e78d39f
commit 5398af0d3e
2 changed files with 7 additions and 7 deletions

View File

@ -23,7 +23,7 @@ namespace AZ.Compute.Agent
NetworkInterface nic;
ulong totalNetworkBytes;
const double nicSpeed = 10 * 1024 * 1024; // 10 MBps
const double nicSpeed = 1 * 1024 * 1024; // 1 MBps
[Export] string id;
@ -105,7 +105,7 @@ namespace AZ.Compute.Agent
var ntb = (ulong)nic.GetIPv4Statistics().BytesReceived + (ulong)nic.GetIPv4Statistics().BytesSent;
network = (float)(((ntb - totalNetworkBytes) / 5.0) / nicSpeed);
Network = (float)(((ntb - totalNetworkBytes) / 5.0) / nicSpeed);
totalNetworkBytes = ntb;

View File

@ -63,7 +63,7 @@
<tr>
<th>Node</th>
<th>IP</th>
<th>Status</th>
<th>Max CPU</th>
<th>CPU</th>
<th>RAM</th>
<th>Network</th>
@ -74,10 +74,10 @@
<tr repeat>
<td>${d.Id}</td>
<td>${d.Ip}</td>
<td>${d.Status}</td>
<td>${d.Cpu}</td>
<td>${d.Ram}</td>
<td>${d.Network}</td>
<td>${d.CpuMaxClock}</td>
<td>${d.Cpu.toFixed(2)}</td>
<td>${d.Ram.toFixed(2)}</td>
<td>${d.Network.toFixed(2)}</td>
<td>
<i-repeat :data="d?.Jobs">
<table>