in src/ComputerDisplay.js [33:56]
async update() {
const currentTime = new Date();
this.setState({ currentTime: currentTime });
const data = await jenkins.computer({
tree: `computer[
offline,
idle,
displayName,
assignedLabels[name],
executors[
currentExecutable[
timestamp,
estimatedDuration,
url,
building
],
idle
]
]`.replace(/\s+/g, ""),
});
data.updateTime = new Date();
data.connectedIn = data.updateTime - currentTime;
this.setState(data);
}