Add host temperature telemetry and history
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { Host } from '$lib/hosts.js';
|
||||
import { cpuTemperature, formatTemperature } from '$lib/host-temperatures.js';
|
||||
import { contextHref } from '$lib/navigation-context.js';
|
||||
import {
|
||||
hostListStatus,
|
||||
@@ -68,7 +69,13 @@
|
||||
? '—'
|
||||
: `${host.playerCount}${host.unreportedInstances ? '+' : ''}`}</td
|
||||
>
|
||||
<td class:stale>{hostCpuUsage(host.inventory.cpuUsagePercent)}</td>
|
||||
<td class:stale
|
||||
>{hostCpuUsage(host.inventory.cpuUsagePercent)}<span class="secondary"
|
||||
>CPU temp: {formatTemperature(
|
||||
cpuTemperature(host.inventory.temperatures)?.celsius
|
||||
)}</span
|
||||
></td
|
||||
>
|
||||
<td class:stale
|
||||
>{hostUsedSpace(
|
||||
host.inventory.memoryTotal,
|
||||
|
||||
Reference in New Issue
Block a user