fix: arch-02 make type file

This commit is contained in:
2026-03-13 11:11:31 +01:00
parent 7c3467d85f
commit ffb84b41a9
4 changed files with 13 additions and 30 deletions

View File

@@ -74,19 +74,10 @@
<script setup lang="ts">
import {computed, ref, watch} from "vue"
import { SystemMetrics } from "~/types/system";
type MetricKey = "cpu" | "ram" | "incoming" | "outgoing"
type SystemMetrics = {
cpuPercent: number
memoryPercent: number
totalMemory: number
usedMemory: number
incomingMbps: number
outgoingMbps: number
sampledAt: string
}
type HistoryPoint = {
sampledAt: string
cpu: number