shithub: mc

Download patch

ref: 0b561ccda3352aa132a5809b73de295ff37bc979
parent: 26fbf11cc69cf2abd07b9b53feb814d290435896
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Sep 9 10:55:26 EDT 2017

Give a sane default for NCPU.

--- a/lib/thread/ncpu+plan9.myr
+++ b/lib/thread/ncpu+plan9.myr
@@ -5,7 +5,7 @@
 ;;
 
 const ncpu = {
-	match std.intparse(std.getenvv("NPROC", ""))
+	match std.intparse(std.getenvv("NPROC", "1"))
 	| `std.Some n:	-> n
 	| `std.None:	-> 1
 	;;