aboutsummaryrefslogtreecommitdiff
path: root/src/getla.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getla.c')
-rw-r--r--src/getla.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/getla.c b/src/getla.c
index c735956..51791c4 100644
--- a/src/getla.c
+++ b/src/getla.c
@@ -15,15 +15,10 @@
15 along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. 15 along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17#define _BSD_SOURCE 17#define _BSD_SOURCE
18#include <config.h> 18#include "tbf.h"
19#include <stdlib.h>
20#include <stdio.h>
21#include <syslog.h>
22#if defined(HAVE_SYSINFO) && defined(HAVE_SYS_SYSINFO_H) 19#if defined(HAVE_SYSINFO) && defined(HAVE_SYS_SYSINFO_H)
23# include <sys/sysinfo.h> 20# include <sys/sysinfo.h>
24#endif 21#endif
25#include "vrt.h"
26#include "vcc_if.h"
27 22
28static double 23static double
29sys_getla(int what) 24sys_getla(int what)
@@ -50,8 +45,8 @@ sys_getla(int what)
50#endif 45#endif
51} 46}
52 47
53double 48VCL_REAL
54vmod_getla(struct sess *sp, int what) 49vmod_getla(MOD_CTX ctx, VCL_INT what)
55{ 50{
56 switch (what) { 51 switch (what) {
57 case 1: 52 case 1:

Return to:

Send suggestions and report system problems to the System administrator.