summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-09 14:55:26 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-09 16:16:05 -0700
commit0b561ccda3352aa132a5809b73de295ff37bc979 (patch)
tree7a4f61393dd5e0ee790f42c98f969d36affc0c82 /lib
parent26fbf11cc69cf2abd07b9b53feb814d290435896 (diff)
downloadmc-0b561ccda3352aa132a5809b73de295ff37bc979.tar.gz
Give a sane default for NCPU.
Diffstat (limited to 'lib')
-rw-r--r--lib/thread/ncpu+plan9.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/thread/ncpu+plan9.myr b/lib/thread/ncpu+plan9.myr
index 25d09cb..a13725c 100644
--- a/lib/thread/ncpu+plan9.myr
+++ b/lib/thread/ncpu+plan9.myr
@@ -5,7 +5,7 @@ pkg thread =
;;
const ncpu = {
- match std.intparse(std.getenvv("NPROC", ""))
+ match std.intparse(std.getenvv("NPROC", "1"))
| `std.Some n: -> n
| `std.None: -> 1
;;