aboutsummaryrefslogtreecommitdiff
path: root/files/munin/vserver_cpu_
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2012-06-27 23:57:05 -0400
committerMicah Anderson <micah@riseup.net>2012-06-27 23:57:05 -0400
commit276ed43bac3c6a38f77bd71c5f47be0f8d179d22 (patch)
tree20cfae642e1733f382b942392a4fd0f0066695fc /files/munin/vserver_cpu_
parentd20265e48c06316d9b8120aed913796231a4ad7d (diff)
parente02f8638bcdf08d59b1a13b8a5be5efe1f344f27 (diff)
downloadpuppet-virtual-276ed43bac3c6a38f77bd71c5f47be0f8d179d22.tar.gz
puppet-virtual-276ed43bac3c6a38f77bd71c5f47be0f8d179d22.tar.bz2
Merge branch 'master' of labs.riseup.net:module_virtual
Diffstat (limited to 'files/munin/vserver_cpu_')
-rwxr-xr-xfiles/munin/vserver_cpu_3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/munin/vserver_cpu_ b/files/munin/vserver_cpu_
index 981f262..8ce3a95 100755
--- a/files/munin/vserver_cpu_
+++ b/files/munin/vserver_cpu_
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#
# Copyright (C) 2006-2008 Holger Levsen and Micah Anderson
#
@@ -63,6 +63,7 @@
VSERVERS="$vservers"
+# FIXME: using arrays is a bashism
INFO=(`sed 's/.*:\t//' /proc/virtual/info 2>/dev/null || echo '<none>'`)
KCIN="$[ 16#${INFO[2]} ]";