diff options
Diffstat (limited to 'core/statistics.h')
-rw-r--r-- | core/statistics.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/statistics.h b/core/statistics.h index 6072f93b2..257303e19 100644 --- a/core/statistics.h +++ b/core/statistics.h @@ -12,6 +12,11 @@ #include "core/units.h" #include "core/dive.h" // For MAX_CYLINDERS +#define STATS_MAX_DEPTH 300 /* Max depth for stats bucket is 300m */ +#define STATS_DEPTH_BUCKET 10 /* Size of buckets for depth range */ +#define STATS_MAX_TEMP 40 /* Max temp for stats bucket is 40C */ +#define STATS_TEMP_BUCKET 5 /* Size of buckets for temp range */ + typedef struct { int period; @@ -44,6 +49,8 @@ struct stats_summary { stats_t *stats_monthly; stats_t *stats_by_trip; stats_t *stats_by_type; + stats_t *stats_by_depth; + stats_t *stats_by_temp; }; #ifdef __cplusplus |