summaryrefslogtreecommitdiffstats
path: root/charts.d/postfix.chart.sh
diff options
context:
space:
mode:
authorSimon Nagl <simonnagl@aim.com>2016-04-28 22:41:15 +0200
committerSimon Nagl <simonnagl@aim.com>2016-04-29 02:31:15 +0200
commitec28e63c30962818dab315d64ee4da10005e47fd (patch)
treee4697d0be4d11c27726366b97351fa378722a3f4 /charts.d/postfix.chart.sh
parent444aab651daab58c4e727fffe74ea21bc920cdab (diff)
Fix #282 use modern arithmetic expansion in shell
Use $((.*)) instead of $[.*] The later one is old syntax
Diffstat (limited to 'charts.d/postfix.chart.sh')
-rwxr-xr-xcharts.d/postfix.chart.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/charts.d/postfix.chart.sh b/charts.d/postfix.chart.sh
index d286f99f20..f4f7102754 100755
--- a/charts.d/postfix.chart.sh
+++ b/charts.d/postfix.chart.sh
@@ -43,9 +43,9 @@ postfix_check() {
postfix_create() {
cat <<EOF
-CHART postfix.qemails '' "Postfix Queue Emails" "emails" queue postfix.queued.emails line $[postfix_priority + 1] $postfix_update_every
+CHART postfix.qemails '' "Postfix Queue Emails" "emails" queue postfix.queued.emails line $((postfix_priority + 1)) $postfix_update_every
DIMENSION emails '' absolute 1 1
-CHART postfix.qsize '' "Postfix Queue Emails Size" "emails size in KB" queue postfix.queued.size area $[postfix_priority + 2] $postfix_update_every
+CHART postfix.qsize '' "Postfix Queue Emails Size" "emails size in KB" queue postfix.queued.size area $((postfix_priority + 2)) $postfix_update_every
DIMENSION size '' absolute 1 1
EOF