1
0
mirror of https://github.com/cmur2/munin-postfix.git synced 2024-11-18 12:56:17 +01:00

seq counts upwards

This commit is contained in:
cn 2013-09-10 21:40:40 +02:00
parent a68da5d4c1
commit 260ed7d3db

View File

@ -95,7 +95,7 @@ SPOOLDIR=${spooldir:-$POSTCONFSPOOL}
syslogXmins() { syslogXmins() {
MINUTES_MINUS_ONE=`expr $MINUTES - 1` MINUTES_MINUS_ONE=`expr $MINUTES - 1`
#for (( i = $MINUTES; i > 0; i-- )) ; do #for (( i = $MINUTES; i > 0; i-- )) ; do
for i in $(seq $MINUTES_MINUS_ONE 0) ; do for i in $(seq 0 $MINUTES_MINUS_ONE) ; do
# In %_d the underscore is important since it demands `date` # In %_d the underscore is important since it demands `date`
# to pad with spaces (like syslog for e.g. "Jan 1" to "Jan 9") # to pad with spaces (like syslog for e.g. "Jan 1" to "Jan 9")
# instead of zeros. # instead of zeros.