diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-06-19 10:30:36 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-06-19 10:31:01 -0700 |
commit | 138a00bd102883551442fb42d0cb26467e82bbe0 (patch) | |
tree | ce4b85dbea7e11fab2cc12248eac85d7a80d9046 /statistics.c | |
parent | 07a16574e9263fc2e30a7c0aec18df33d54a70dc (diff) | |
download | subsurface-138a00bd102883551442fb42d0cb26467e82bbe0.tar.gz |
Improve readability of yearly statistics
Make the entries for years bold, keep the months non-bold.
It's still a sea of data, but this is an improvement.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.c')
-rw-r--r-- | statistics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/statistics.c b/statistics.c index ece5419d9..1b6a709a6 100644 --- a/statistics.c +++ b/statistics.c @@ -128,6 +128,7 @@ void process_all_dives(struct dive *dive, struct dive **prev_dive) return; memset(stats_yearly, 0, size); memset(stats_monthly, 0, size); + stats_yearly[0].is_year = TRUE; /* this relies on the fact that the dives in the dive_table * are in chronological order */ @@ -148,6 +149,7 @@ void process_all_dives(struct dive *dive, struct dive **prev_dive) if (current_year != tm.tm_year + 1900) { current_year = tm.tm_year + 1900; process_dive(dp, &(stats_yearly[++year_iter])); + stats_yearly[year_iter].is_year = TRUE; } else { process_dive(dp, &(stats_yearly[year_iter])); } |