mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Split the dive list in columns. Columns are sortable now (name = date, depth, duration)
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
This commit is contained in:
parent
bcf12edfe9
commit
31123f63af
2 changed files with 46 additions and 8 deletions
|
@ -693,11 +693,9 @@ static char *generate_name(struct dive *dive)
|
|||
|
||||
len = snprintf(buffer, sizeof(buffer),
|
||||
"%04d-%02d-%02d "
|
||||
"%02d:%02d:%02d "
|
||||
"(%d ft, %d min)",
|
||||
"%02d:%02d:%02d",
|
||||
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
|
||||
tm->tm_hour, tm->tm_min, tm->tm_sec,
|
||||
to_feet(dive->maxdepth), dive->duration.seconds / 60);
|
||||
tm->tm_hour, tm->tm_min, tm->tm_sec);
|
||||
p = malloc(len+1);
|
||||
if (!p)
|
||||
exit(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue