mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
config/functions: store config info in history
This commit is contained in:
parent
748befe904
commit
439f38bcff
@ -1424,6 +1424,12 @@ pkg_lock_status() {
|
|||||||
(
|
(
|
||||||
flock --exclusive 94
|
flock --exclusive 94
|
||||||
|
|
||||||
|
# Write the configured number of slots to history to improve accuracy of later analysis
|
||||||
|
if [ ! -f "${THREAD_CONTROL}/history" ]; then
|
||||||
|
printf "%s: <%06d> [%0*d/%0*d] %-7s %-7s %s %s\n" \
|
||||||
|
"$(date +%Y-%m-%d\ %H:%M:%S.%N)" $$ ${idwidth} 0 ${#MTMAXJOBS} 0 "IDLE" "config" "info" "slots=${MTMAXSLOT};jobs=${MTMAXJOBS}" >>"${THREAD_CONTROL}/history"
|
||||||
|
fi
|
||||||
|
|
||||||
printf -v line "%s: <%06d> [%0*d/%0*d] %-7s %-7s %-35s" \
|
printf -v line "%s: <%06d> [%0*d/%0*d] %-7s %-7s %-35s" \
|
||||||
"$(date +%Y-%m-%d\ %H:%M:%S.%N)" $$ ${idwidth} ${this_job} ${#MTMAXJOBS} ${PARALLEL_SEQ:-0} "${status}" "${task}" "${pkg}"
|
"$(date +%Y-%m-%d\ %H:%M:%S.%N)" $$ ${idwidth} ${this_job} ${#MTMAXJOBS} ${PARALLEL_SEQ:-0} "${status}" "${task}" "${pkg}"
|
||||||
[ -n "${msg}" ] && line+=" (${msg})"
|
[ -n "${msg}" ] && line+=" (${msg})"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user