fix(striker-ui): replace host names in cpu summary with short version

main
Tsu-ba-me 1 year ago
parent 58a3b56def
commit 72ee08414a
  1. 3
      striker-ui-api/src/lib/request_handlers/anvil/getAnvilCpu.ts

@ -1,6 +1,7 @@
import { RequestHandler } from 'express';
import { query } from '../../accessModule';
import { getShortHostName } from '../../disassembleHostName';
import { stderr } from '../../shell';
export const getAnvilCpu: RequestHandler<AnvilDetailParamsDictionary> = async (
@ -103,7 +104,7 @@ export const getAnvilCpu: RequestHandler<AnvilDetailParamsDictionary> = async (
previous.hosts[uuid] = {
cores,
model,
name,
name: getShortHostName(name),
threads,
uuid,
vendor,

Loading…
Cancel
Save