fix(frontend): remove conf.vcpus from cClusterConfToClusterInfo — field moved to myconf_t

This commit is contained in:
Rongsong Shen 2026-05-29 10:18:01 +00:00
parent b6c8aca458
commit 6b821eb4d5

View file

@ -200,7 +200,7 @@ func cClusterConfToClusterInfo(conf *C.cluster_config_t) *models.ClusterInfo {
return rawClusterToModel(rawClusterData{
name: name,
heartbeatInterval: int(conf.heartbeat_interval),
vcpus: int(conf.vcpus),
vcpus: 0, // vcpus moved to myconf_t (--vcpus CLI flag); not in cluster_config_t
inactiveHeartbeatCount: int(conf.inactive_heartbeat_count),
})
}