summaryrefslogtreecommitdiffstats
path: root/src/global_statistics.h
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2018-01-09 00:00:47 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2018-01-09 00:00:47 +0200
commitb33b7ee4fdbc3c46480f828a155c42db2285036d (patch)
treea98bf0427daf4207659fda683925128d8b501974 /src/global_statistics.h
parentcf3a8218e9f0953f983c4b910a72dc29898c4c18 (diff)
static-threaded web server completed
Diffstat (limited to 'src/global_statistics.h')
-rw-r--r--src/global_statistics.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/global_statistics.h b/src/global_statistics.h
index d28aa4401c..62fee6e363 100644
--- a/src/global_statistics.h
+++ b/src/global_statistics.h
@@ -14,6 +14,8 @@ struct global_statistics {
volatile uint64_t bytes_sent;
volatile uint64_t content_size;
volatile uint64_t compressed_content_size;
+
+ volatile uint64_t web_client_count;
};
extern volatile struct global_statistics global_statistics;
@@ -26,7 +28,7 @@ extern void finished_web_request_statistics(uint64_t dt,
uint64_t content_size,
uint64_t compressed_content_size);
-extern void web_client_connected(void);
+extern uint64_t web_client_connected(void);
extern void web_client_disconnected(void);
#define GLOBAL_STATS_RESET_WEB_USEC_MAX 0x01