[MediaWiki-commits] [Gerrit] operations/puppet[production]: Remove obsolete file misc/scripts/pcntl

2016-12-06 Thread Tim Landscheidt (Code Review)
Tim Landscheidt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/325587

Change subject: Remove obsolete file misc/scripts/pcntl
..

Remove obsolete file misc/scripts/pcntl

The file was added by 7fc4596035d41fabbbfb852e62b75286f03ee424.  It is
probably not of general use; if it was, it would have been moved to
operations/software or referenced in a manifest.

Change-Id: Ib10d15fdfab2cd1375f2bf6bb8deb77b1ffdffbd
---
D files/misc/scripts/pcntl
1 file changed, 0 insertions(+), 26 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/87/325587/1

diff --git a/files/misc/scripts/pcntl b/files/misc/scripts/pcntl
deleted file mode 100755
index 7b8007d..000
--- a/files/misc/scripts/pcntl
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/python
-#
-# reads stdin and calculates some percentiles from the first
-# number found on each line.
-#
-
-from __future__ import division
-import sys
-import re
-
-vals = []
-
-for line in sys.stdin:
-   n = re.search('([\d\.]+)', line)
-   if n:
-   vals.append(float(n.group(1)))
-
-vals = sorted(vals)
-
-p50 = int(round(len(vals) * 0.5))-1
-p90 = int(round(len(vals) * 0.9))-1
-p99 = int(round(len(vals) * 0.99))-1
-avg = reduce(lambda x, y: x + y, vals) / len(vals)
-
-print 'min: %.3f, avg: %.3f, max: %.3f' % (vals[0], avg, vals[len(vals)-1])
-print 'p50: %.3f, p90: %.3f, p99: %.3f' % (vals[p50], vals[p90], vals[p99])

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib10d15fdfab2cd1375f2bf6bb8deb77b1ffdffbd
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Tim Landscheidt 

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


[MediaWiki-commits] [Gerrit] operations/puppet[production]: Remove obsolete file misc/scripts/pcntl

2016-12-06 Thread Dzahn (Code Review)
Dzahn has submitted this change and it was merged.

Change subject: Remove obsolete file misc/scripts/pcntl
..


Remove obsolete file misc/scripts/pcntl

The file was added by 7fc4596035d41fabbbfb852e62b75286f03ee424.  It is
probably not of general use; if it was, it would have been moved to
operations/software or referenced in a manifest.

---

This file has been moved to the operations/software repo in ./misc/.
in Iefd9d110b91affdef661819 (https://gerrit.wikimedia.org/r/#/c/325616/)

You can get it from there if you are missing it.

Change-Id: Ib10d15fdfab2cd1375f2bf6bb8deb77b1ffdffbd
---
D files/misc/scripts/pcntl
1 file changed, 0 insertions(+), 26 deletions(-)

Approvals:
  Dzahn: Verified; Looks good to me, approved



diff --git a/files/misc/scripts/pcntl b/files/misc/scripts/pcntl
deleted file mode 100755
index 7b8007d..000
--- a/files/misc/scripts/pcntl
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/python
-#
-# reads stdin and calculates some percentiles from the first
-# number found on each line.
-#
-
-from __future__ import division
-import sys
-import re
-
-vals = []
-
-for line in sys.stdin:
-   n = re.search('([\d\.]+)', line)
-   if n:
-   vals.append(float(n.group(1)))
-
-vals = sorted(vals)
-
-p50 = int(round(len(vals) * 0.5))-1
-p90 = int(round(len(vals) * 0.9))-1
-p99 = int(round(len(vals) * 0.99))-1
-avg = reduce(lambda x, y: x + y, vals) / len(vals)
-
-print 'min: %.3f, avg: %.3f, max: %.3f' % (vals[0], avg, vals[len(vals)-1])
-print 'p50: %.3f, p90: %.3f, p99: %.3f' % (vals[p50], vals[p90], vals[p99])

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib10d15fdfab2cd1375f2bf6bb8deb77b1ffdffbd
Gerrit-PatchSet: 4
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Tim Landscheidt 
Gerrit-Reviewer: Dzahn 
Gerrit-Reviewer: jenkins-bot <>

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