Fixed image server sorting, fixed improper imstat job counts
This commit is contained in:
parent
a9a404d1e1
commit
6d1bc63352
2 changed files with 3 additions and 3 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: ${Math.max(0, servers[i].runningJobs - servers[i].max)}\nMax Jobs: ${servers[i].max}`
|
||||
value: `Running Jobs: ${Math.min(servers[i].runningJobs, servers[i].max)}\nQueued: ${Math.max(0, servers[i].runningJobs - servers[i].max)}\nMax Jobs: ${servers[i].max}`
|
||||
});
|
||||
}
|
||||
return embed;
|
||||
|
@ -28,4 +28,4 @@ class ImageStatsCommand extends Command {
|
|||
static aliases = ["imgstat", "imstats", "imgstats", "imstat"];
|
||||
}
|
||||
|
||||
export default ImageStatsCommand;
|
||||
export default ImageStatsCommand;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue