fix
This commit is contained in:
parent
037bc45467
commit
60e76d755d
|
@ -71,7 +71,7 @@ current_time=$(date +%s)
|
||||||
start_time_diff="undefined"
|
start_time_diff="undefined"
|
||||||
end_time_diff="undefined"
|
end_time_diff="undefined"
|
||||||
|
|
||||||
if [ -n "$start_time" ]; then
|
if [ -n "$start_time" ] && [ "$start_time" != "n/a" ]; then
|
||||||
start_time_diff=$((current_time - $(date -d "$start_time" +%s)))
|
start_time_diff=$((current_time - $(date -d "$start_time" +%s)))
|
||||||
start_time_diff_perf="| uptime=${start_time_diff}s"
|
start_time_diff_perf="| uptime=${start_time_diff}s"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue