diff options
Diffstat (limited to 'src/global_statistics.h')
-rwxr-xr-x | src/global_statistics.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/global_statistics.h b/src/global_statistics.h new file mode 100755 index 00000000..ce3c3490 --- /dev/null +++ b/src/global_statistics.h @@ -0,0 +1,20 @@ +#ifndef NETDATA_GLOBAL_STATISTICS_H +#define NETDATA_GLOBAL_STATISTICS_H 1 + +// ---------------------------------------------------------------------------- +// global statistics + +struct global_statistics { + unsigned long long connected_clients; + unsigned long long web_requests; + unsigned long long bytes_received; + unsigned long long bytes_sent; + +}; + +extern struct global_statistics global_statistics; + +extern void global_statistics_lock(void); +extern void global_statistics_unlock(void); + +#endif /* NETDATA_GLOBAL_STATISTICS_H */ |