up
This commit is contained in:
parent
5c7e78d39f
commit
5398af0d3e
@ -23,7 +23,7 @@ namespace AZ.Compute.Agent
|
|||||||
NetworkInterface nic;
|
NetworkInterface nic;
|
||||||
ulong totalNetworkBytes;
|
ulong totalNetworkBytes;
|
||||||
|
|
||||||
const double nicSpeed = 10 * 1024 * 1024; // 10 MBps
|
const double nicSpeed = 1 * 1024 * 1024; // 1 MBps
|
||||||
|
|
||||||
|
|
||||||
[Export] string id;
|
[Export] string id;
|
||||||
@ -105,7 +105,7 @@ namespace AZ.Compute.Agent
|
|||||||
|
|
||||||
var ntb = (ulong)nic.GetIPv4Statistics().BytesReceived + (ulong)nic.GetIPv4Statistics().BytesSent;
|
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;
|
totalNetworkBytes = ntb;
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<th>Node</th>
|
<th>Node</th>
|
||||||
<th>IP</th>
|
<th>IP</th>
|
||||||
<th>Status</th>
|
<th>Max CPU</th>
|
||||||
<th>CPU</th>
|
<th>CPU</th>
|
||||||
<th>RAM</th>
|
<th>RAM</th>
|
||||||
<th>Network</th>
|
<th>Network</th>
|
||||||
@ -74,10 +74,10 @@
|
|||||||
<tr repeat>
|
<tr repeat>
|
||||||
<td>${d.Id}</td>
|
<td>${d.Id}</td>
|
||||||
<td>${d.Ip}</td>
|
<td>${d.Ip}</td>
|
||||||
<td>${d.Status}</td>
|
<td>${d.CpuMaxClock}</td>
|
||||||
<td>${d.Cpu}</td>
|
<td>${d.Cpu.toFixed(2)}</td>
|
||||||
<td>${d.Ram}</td>
|
<td>${d.Ram.toFixed(2)}</td>
|
||||||
<td>${d.Network}</td>
|
<td>${d.Network.toFixed(2)}</td>
|
||||||
<td>
|
<td>
|
||||||
<i-repeat :data="d?.Jobs">
|
<i-repeat :data="d?.Jobs">
|
||||||
<table>
|
<table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user