Make typed swarm control own operator heat
This commit is contained in:
parent
510cdf1d2c
commit
2059411e85
3 changed files with 10 additions and 9 deletions
|
|
@ -80,7 +80,7 @@ function projectSwarmOperatorView({ heartbeat, orchestrator, pause, control, obs
|
|||
repoName: participant.repoName,
|
||||
state: participant.activeJobId ? "active" : participant.status,
|
||||
nextTurnInMinutes: participant.nextTurnInMinutes,
|
||||
heat: participant.heat ?? number(control?.globalHeat) ?? number(heartbeat?.globalHeat),
|
||||
heat: number(control?.globalHeat) ?? participant.heat ?? number(heartbeat?.globalHeat),
|
||||
label: participant.displayName,
|
||||
status: participant.activeJobId ? "active" : participant.status,
|
||||
detail: `${participant.repoName} · ${formatTurnDistance(participant.nextTurnInMinutes)}`,
|
||||
|
|
@ -96,7 +96,7 @@ function projectSwarmOperatorView({ heartbeat, orchestrator, pause, control, obs
|
|||
avatarUri: selected.avatarUri,
|
||||
status: selected.status,
|
||||
nextTurnInMinutes: selected.nextTurnInMinutes,
|
||||
heat: selected.heat ?? number(control?.globalHeat) ?? number(heartbeat?.globalHeat),
|
||||
heat: number(control?.globalHeat) ?? selected.heat ?? number(heartbeat?.globalHeat),
|
||||
memoryCount: selected.memoryCount,
|
||||
pressureCount: selected.pressureCount,
|
||||
description: selected.description,
|
||||
|
|
|
|||
Loading…
Reference in a new issue