mirror of https://github.com/aristocratos/bashtop
fix for error in stripping ,/. from EPOCHREALTIME
parent
988efeafcd
commit
c3a82f7c0d
2
bashtop
2
bashtop
|
@ -155,7 +155,7 @@ box[double_title_right]="╢"
|
||||||
if [[ -n $EPOCHREALTIME ]]; then
|
if [[ -n $EPOCHREALTIME ]]; then
|
||||||
get_ms() { #? Set given variable to current epoch millisecond with EPOCHREALTIME varialble
|
get_ms() { #? Set given variable to current epoch millisecond with EPOCHREALTIME varialble
|
||||||
local -n ms_out=$1
|
local -n ms_out=$1
|
||||||
ms_out=$((${EPOCHREALTIME/,/}/1000))
|
ms_out=$((${EPOCHREALTIME/[.,]/}/1000))
|
||||||
}
|
}
|
||||||
|
|
||||||
#* If not, use date command
|
#* If not, use date command
|
||||||
|
|
Loading…
Reference in New Issue