Alexandros Kosiaris has submitted this change and it was merged.

Change subject: Fix a typo
......................................................................


Fix a typo

The /8 should be done after the cast to Integer has occured

Change-Id: Ieefd59f5436134f436dc1a826098e1acaee386d4
---
M templates/backups/mysql-predump.erb
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Alexandros Kosiaris: Verified; Looks good to me, approved



diff --git a/templates/backups/mysql-predump.erb 
b/templates/backups/mysql-predump.erb
index 371fa90..c783fe8 100644
--- a/templates/backups/mysql-predump.erb
+++ b/templates/backups/mysql-predump.erb
@@ -14,7 +14,7 @@
 DATE=$(date "+%Y%m%d%H%M")
 
 # Let's be polite and not use all available processors
-PIGZ="/usr/bin/pigz -p <%= Integer(@processorcount)/8 > 1 ? 
Integer(@processorcount/8) : 1 %> "
+PIGZ="/usr/bin/pigz -p <%= Integer(@processorcount)/8 > 1 ? 
Integer(@processorcount)/8 : 1 %> "
 PIGZD="/usr/bin/pigz -d"
 <% if @pigz_level -%>
 PIGZ="$PIGZ --<%= @pigz_level -%>"
@@ -32,7 +32,7 @@
 find <%= @local_dump_dir %> -name "*sql.gz" -mtime +15 -exec rm {} \;
 for database in `$MYSQL -B -N -e "select schema_name from 
information_schema.schemata where schema_name not like '%\_schema'"`
 do
-       NP=$((<%= @processorcount%> * 3 / 4)) # This is guaranteed to return an 
integer
+       NP=$((<%= @processorcount %> * 3 / 4)) # This is guaranteed to return 
an integer
        JOBS=$(jobs -p | wc -l)
        if [ $JOBS -ge $NP ]; then
                wait $(jobs -p | head -1)

-- 
To view, visit https://gerrit.wikimedia.org/r/133713
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ieefd59f5436134f436dc1a826098e1acaee386d4
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to