+ @{
+ NodeFetchState? fetchState;
+
+ lock (StatusCache)
+ fetchState = StatusCache.ContainsKey(context.Id) ? StatusCache[context.Id] : null;
+ }
+
+ @if (fetchState == null)
+ {
+
Loading status...
+ }
+ else if (fetchState.Response != null)
+ {
+ var response = fetchState.Response!;
+
+
+
+ Online
+
+
+
+
+ @(response.CpuUsage.Average(x => x))%
+
+
+
+
+
+ @Formatter.FormatSize((long)(response.MemoryTotal - response.MemoryAvailable))
+ /
+ @Formatter.FormatSize((long)response.MemoryTotal)
+
+
+
+
+
+ @Formatter.FormatSize((long)(response.DiskTotal - response.DiskFree))
+ /
+ @Formatter.FormatSize((long)response.DiskTotal)
+
+
+ }
+ else if(fetchState.Exception != null)
+ {
+
+
+ Offline:
+
+ @fetchState.Exception.Message
+
+ }
+
+