Fossil SCM
Doc typo fix and more docs for load_control().
Commit
e5724fb75977f5e29a73d1ed581c285c8e67c3f2c98a3515840207512fdadbd1
Parent
57cdf4f2b9c69e0…
1 file changed
+3
-2
+3
-2
| --- src/loadctrl.c | ||
| +++ src/loadctrl.c | ||
| @@ -45,12 +45,13 @@ | ||
| 45 | 45 | void loadavg_test_cmd(void){ |
| 46 | 46 | fossil_print("load-average: %f\n", load_average()); |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /* |
| 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. | |
| 52 | 53 | */ |
| 53 | 54 | void load_control(void){ |
| 54 | 55 | double mxLoad = atof(db_get("max-loadavg", 0)); |
| 55 | 56 | if( mxLoad<=0.0 || mxLoad>=load_average() ) return; |
| 56 | 57 | |
| 57 | 58 |
| --- 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 |