Merge branch 'image-api-logic'

This commit is contained in:
Essem 2021-12-10 00:13:46 -06:00
commit 5d89d78b44
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
17 changed files with 432 additions and 303 deletions

View file

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