]> arthur.barton.de Git - netdata.git/commitdiff
compatibility fixes
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 20 May 2014 21:03:51 +0000 (00:03 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 20 May 2014 21:03:51 +0000 (00:03 +0300)
plugins.d/charts.d.dryrun-helper.sh
plugins.d/charts.d.plugin
plugins.d/loopsleepms.sh.inc

index 3d0bcb3732261e25eb558f439a6780a73c919366..64645289248bb28bc429d95e6e36139784c7cd00 100755 (executable)
@@ -10,8 +10,8 @@ conf="$3"
 
 can_diff=1
 
-tmp1=`mktemp`
-tmp2=`mktemp`
+tmp1="`mktemp`"
+tmp2="`mktemp`"
 
 myset() {
        set | grep -v "^_="     | grep -v "^PIPESTATUS=" | grep -v "^BASH_LINENO="
index 5d246ee4f3b5fd809dfa2172fe805bcd4757632c..dfd8e06af3248ea2fe60cfc0df287f0d47d49436 100755 (executable)
@@ -284,9 +284,9 @@ global_update() {
                local chart=
                for chart in $now_charts
                do
-                       local d=`date +'%s.%N'`
-                       local s=`echo $d | cut -d '.' -f 1`
-                       local m=`echo $d | cut -d '.' -f 2 | cut -b 1-3`
+                       local d="`date +'%s.%N'`"
+                       local s="`echo $d | cut -d '.' -f 1`"
+                       local m="`echo $d | cut -d '.' -f 2 | cut -b 1-3`"
                        local now="$s$m" # milliseconds since epoch (1-1-1970)
 
                        eval "local last=\$last_update_$chart"
index ad77008a16b4adce2f2d2c17bf6d57e6ea889d08..87d8bad583988d05e508c1d112ef8f82d8d24704 100755 (executable)
@@ -36,9 +36,9 @@ loopsleepms() {
        fi
 
        # get the current time
-       local d=`date +'%s.%N'`
-       local s=`echo $d | cut -d '.' -f 1`
-       local m=`echo $d | cut -d '.' -f 2 | cut -b 1-3`
+       local d="`date +'%s.%N'`"
+       local s="`echo $d | cut -d '.' -f 1`"
+       local m="`echo $d | cut -d '.' -f 2 | cut -b 1-3`"
        local now="$s$m" # milliseconds since epoch (1-1-1970)
 
        # calculate required sleep in ms