Skip to content

Commit

Permalink
🩹 Apply suggestions from review
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePooN committed Oct 16, 2023
1 parent a611459 commit f672715
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scthumbd.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const thumber = scThumber({
const workers = process.env.WORKERS ?? os.cpus().length;
const port = process.env.PORT ?? 4001;

if (cluster.isPrimary || workers <= 1) {
if (cluster.isPrimary) {
console.log(`${'[m]'.red} ${'scthumbd %s'.yellow}`, process.env.npm_package_version);
console.log(`${'[m]'.red} Listening on port ${'%s'.green}...`, port);
}
Expand All @@ -83,5 +83,5 @@ if (cluster.isPrimary && workers > 1) {

app.listen(port);

console.log(`${'[w]'.magenta} Worker ${'%s'.green} started...`, cluster.worker?.id || 0);
console.log(`${'[w]'.magenta} Worker ${'%s'.green} started...`, cluster.worker?.id ?? 1);
}

0 comments on commit f672715

Please sign in to comment.