s4

changeset 693:5f3e94a9b7b3

Show load average at login failure on DB lock
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 19 May 2020 11:45:02 +0900
parents 9ff4603fc920
children c45ab714d68e
files examples/common/msg/login-fail-4.m4.html s4-funcs.sh
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/examples/common/msg/login-fail-4.m4.html	Tue May 19 09:16:05 2020 +0900
     1.2 +++ b/examples/common/msg/login-fail-4.m4.html	Tue May 19 11:45:02 2020 +0900
     1.3 @@ -1,2 +1,4 @@
     1.4  <h2>混雑中</h2>
     1.5 -<p>アクセスが集中しているようです。時間を置いて繋いでください。</p>
     1.6 +<p>アクセスが集中しているようです。時間を置いて繋いでください。<br>
     1.7 +負荷: _LOADAVG_
     1.8 +</p>
     2.1 --- a/s4-funcs.sh	Tue May 19 09:16:05 2020 +0900
     2.2 +++ b/s4-funcs.sh	Tue May 19 11:45:02 2020 +0900
     2.3 @@ -1325,6 +1325,7 @@
     2.4    if [ $st != 0 ]; then
     2.5      contenttype; echo
     2.6      _m4 -D_USER_="$user" -D_URL_="$url" -D_ADMIN_="$admin" \
     2.7 +	-D _LOADAVG_="`uptime|awk '{print $(NF-2)}'|tr -d ,`" \
     2.8         $msgdir/login-fail-$st.m4.html
     2.9      showlogin			# and EXIT
    2.10    fi