Adding trip based statistics

This adds trip based statistics to the Yearly Statistics
view.

Signed-off-by: Miika Turkia <miika.turkia@nixu.fi>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2013-11-24 03:09:34 +02:00 committed by Dirk Hohndel
parent 66cdb3689a
commit ce525bd285
3 changed files with 47 additions and 3 deletions

View file

@ -31,10 +31,13 @@ typedef struct {
unsigned int selection_size;
unsigned int total_sac_time;
bool is_year;
bool is_trip;
char *location;
} stats_t;
extern stats_t stats_selection;
extern stats_t *stats_yearly;
extern stats_t *stats_monthly;
extern stats_t *stats_by_trip;
extern char *get_time_string(int seconds, int maxdays);
extern char *get_minutes(int seconds);