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

Loading…
Cancel
Save