|
|
@ -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, |
|
|
|