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>
This commit is contained in:
Dirk Hohndel 2013-06-19 10:30:36 -07:00
parent 07a16574e9
commit 138a00bd10
3 changed files with 15 additions and 6 deletions

View file

@ -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]));
}