diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-09 00:00:47 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-09 00:00:47 +0200 |
commit | b33b7ee4fdbc3c46480f828a155c42db2285036d (patch) | |
tree | a98bf0427daf4207659fda683925128d8b501974 /src/global_statistics.h | |
parent | cf3a8218e9f0953f983c4b910a72dc29898c4c18 (diff) |
static-threaded web server completed
Diffstat (limited to 'src/global_statistics.h')
-rw-r--r-- | src/global_statistics.h | 4 |
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 |