mirror of
https://github.com/netdata/netdata.git
synced 2025-03-16 14:03:40 +00:00
compatibility fixes
This commit is contained in:
parent
b69787475b
commit
3e7de5564d
3 changed files with 8 additions and 8 deletions
|
@ -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="
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue