mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
07a16574e9
commit
138a00bd10
3 changed files with 15 additions and 6 deletions
|
|
@ -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]));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue