Fossil SCM

Doc typo fix and more docs for load_control().

stephan 2022-04-14 17:15 UTC load-control-rework
Commit e5724fb75977f5e29a73d1ed581c285c8e67c3f2c98a3515840207512fdadbd1
1 file changed +3 -2
+3 -2
--- src/loadctrl.c
+++ src/loadctrl.c
@@ -45,12 +45,13 @@
4545
void loadavg_test_cmd(void){
4646
fossil_print("load-average: %f\n", load_average());
4747
}
4848
4949
/*
50
-** Abort the current operation of the load average of the host computer
51
-** is too high.
50
+** Abort the current page request if the load average of the host
51
+** computer is too high. Admin and Setup users are exempt from this
52
+** restriction.
5253
*/
5354
void load_control(void){
5455
double mxLoad = atof(db_get("max-loadavg", 0));
5556
if( mxLoad<=0.0 || mxLoad>=load_average() ) return;
5657
5758
--- src/loadctrl.c
+++ src/loadctrl.c
@@ -45,12 +45,13 @@
45 void loadavg_test_cmd(void){
46 fossil_print("load-average: %f\n", load_average());
47 }
48
49 /*
50 ** Abort the current operation of the load average of the host computer
51 ** is too high.
 
52 */
53 void load_control(void){
54 double mxLoad = atof(db_get("max-loadavg", 0));
55 if( mxLoad<=0.0 || mxLoad>=load_average() ) return;
56
57
--- src/loadctrl.c
+++ src/loadctrl.c
@@ -45,12 +45,13 @@
45 void loadavg_test_cmd(void){
46 fossil_print("load-average: %f\n", load_average());
47 }
48
49 /*
50 ** Abort the current page request if the load average of the host
51 ** computer is too high. Admin and Setup users are exempt from this
52 ** restriction.
53 */
54 void load_control(void){
55 double mxLoad = atof(db_get("max-loadavg", 0));
56 if( mxLoad<=0.0 || mxLoad>=load_average() ) return;
57
58

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button