adjust
This commit is contained in:
parent
60e76d755d
commit
c1fb13bad0
|
@ -68,8 +68,8 @@ fi
|
|||
start_time=$(systemctl show "$UNIT_NAME" --property=ExecMainStartTimestamp --value)
|
||||
end_time=$(systemctl show "$UNIT_NAME" --property=ExecMainExitTimestamp --value)
|
||||
current_time=$(date +%s)
|
||||
start_time_diff="undefined"
|
||||
end_time_diff="undefined"
|
||||
start_time_diff_perf=""
|
||||
end_time_diff_perf=""
|
||||
|
||||
if [ -n "$start_time" ] && [ "$start_time" != "n/a" ]; then
|
||||
start_time_diff=$((current_time - $(date -d "$start_time" +%s)))
|
||||
|
|
Loading…
Reference in New Issue