Francois Gouget : testbot/build: Fix the CountCPUs() indentation.

Alexandre Julliard julliard at winehq.org
Tue Jun 12 17:35:20 CDT 2018


Module: tools
Branch: master
Commit: baad489688b904a32c5ff37dc357c02f13f6188c
URL:    https://source.winehq.org/git/tools.git/?a=commit;h=baad489688b904a32c5ff37dc357c02f13f6188c

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Tue Jun 12 11:52:25 2018 +0200

testbot/build: Fix the CountCPUs() indentation.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 testbot/bin/build/Build.pl    | 18 +++++++++---------
 testbot/bin/build/Reconfig.pl | 14 +++++++-------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/testbot/bin/build/Build.pl b/testbot/bin/build/Build.pl
index fbb3bdd..8b18590 100755
--- a/testbot/bin/build/Build.pl
+++ b/testbot/bin/build/Build.pl
@@ -109,8 +109,8 @@ sub ApplyPatch($)
            ") >>$LogDir/Build.log 2>&1");
     if ($? != 0)
     {
-       LogMsg "Autoconf failed\n";
-       return undef;
+      LogMsg "Autoconf failed\n";
+      return undef;
     }
   }
 
@@ -120,13 +120,13 @@ sub ApplyPatch($)
 my $ncpus;
 sub CountCPUs()
 {
-    if (open(my $fh, "<", "/proc/cpuinfo"))
-    {
-        # Linux
-        map { $ncpus++ if (/^processor/); } <$fh>;
-        close($fh);
-    }
-    $ncpus ||= 1;
+  if (open(my $fh, "<", "/proc/cpuinfo"))
+  {
+    # Linux
+    map { $ncpus++ if (/^processor/); } <$fh>;
+    close($fh);
+  }
+  $ncpus ||= 1;
 }
 
 sub BuildNative()
diff --git a/testbot/bin/build/Reconfig.pl b/testbot/bin/build/Reconfig.pl
index f84c804..977df6e 100755
--- a/testbot/bin/build/Reconfig.pl
+++ b/testbot/bin/build/Reconfig.pl
@@ -102,13 +102,13 @@ sub GitPull()
 my $ncpus;
 sub CountCPUs()
 {
-    if (open(my $fh, "<", "/proc/cpuinfo"))
-    {
-        # Linux
-        map { $ncpus++ if (/^processor/); } <$fh>;
-        close($fh);
-    }
-    $ncpus ||= 1;
+  if (open(my $fh, "<", "/proc/cpuinfo"))
+  {
+    # Linux
+    map { $ncpus++ if (/^processor/); } <$fh>;
+    close($fh);
+  }
+  $ncpus ||= 1;
 }
 
 sub BuildTestAgentd()




More information about the wine-cvs mailing list