s4
changeset 639:1c36cb1a1a0e
Cancellation for too heavy access
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 03 May 2020 16:50:46 +0900 |
parents | b29e31dc3fbd |
children | b7aeab02d242 |
files | s4-blog.sh |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/s4-blog.sh Sun May 03 16:47:54 2020 +0900 1.2 +++ b/s4-blog.sh Sun May 03 16:50:46 2020 +0900 1.3 @@ -227,6 +227,10 @@ 1.4 FROM $ts WHERE id='$id' GROUP BY id; 1.5 EOF 1.6 { IFS='|' read edit ctime hexhead blogtype 1.7 + if [ -z "$ctime" ]; then # Maybe database timeout 1.8 + echo "時間をおいて繋いでください(Please visit later)." | html p 1.9 + return 1.10 + fi 1.11 cat<<-EOF 1.12 <tr><td>${edit:+$href }$ctime $blogtype $href2$href3 $href4 $href5</td></tr> 1.13 <tr class="preface${frozen_class:+ }$frozen_class">