Some fixes
This commit is contained in:
parent
41068ae763
commit
fe321e00b4
3 changed files with 11 additions and 9 deletions
|
@ -18,7 +18,7 @@ class ImageStatsCommand extends Command {
|
|||
for (let i = 0; i < servers.length; i++) {
|
||||
embed.embeds[0].fields.push({
|
||||
name: `Server ${i + 1}`,
|
||||
value: `Running Jobs: ${servers[i].runningJobs}\nQueued: ${servers[i].queued}\nMax Jobs: ${servers[i].max}`
|
||||
value: `Running Jobs: ${servers[i].runningJobs}\nQueued: ${Math.max(0, servers[i].runningJobs - servers[i].max)}\nMax Jobs: ${servers[i].max}`
|
||||
});
|
||||
}
|
||||
return embed;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue