From d28407dcd675b3f0c74cbfc8282857eb551f32d6 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 8 Apr 2011 05:50:05 +0000 Subject: [PATCH] Dont allow $procs to be 0 --- maintenance/hiphop/make | 1 + 1 file changed, 1 insertion(+) diff --git a/maintenance/hiphop/make b/maintenance/hiphop/make index 3e270f830c..fdf5e0602e 100755 --- a/maintenance/hiphop/make +++ b/maintenance/hiphop/make @@ -153,6 +153,7 @@ class MakeHipHop extends Maintenance { } if ( $mem ) { $procs = floor( $mem / 1000000 ); + $procs = $procs >= 1 ? $procs : 1; // No less than 1 } else { $procs = 1; } -- 2.20.1