Use Math.max instead of Math.min

This commit is contained in:
Antonio Scandurra
2015-04-10 10:20:02 +02:00
parent 43a807c630
commit 01504cfde5

View File

@@ -78,7 +78,7 @@ module.exports = (grunt) ->
continue unless isAtomPackage(packagePath)
packageSpecQueue.push(packagePath)
packageSpecQueue.concurrency = Math.min(1, concurrency - 1)
packageSpecQueue.concurrency = Math.max(1, concurrency - 1)
packageSpecQueue.drain = -> callback(null, failedPackages)
runCoreSpecs = (callback) ->