diff options
author | Nathan Samson <nathansamson@gmail.com> | 2011-09-04 20:14:33 +0200 |
---|---|---|
committer | Nathan Samson <nathansamson@gmail.com> | 2011-09-04 20:14:39 +0200 |
commit | 31123f63af0a2b6a9756b8496f56359d1c68a645 (patch) | |
tree | 7559319ba3d7f46058e1e60de6da842e58eb3976 /parse-xml.c | |
parent | bcf12edfe9f9f00d39736d1cff791dbe8809f6f1 (diff) | |
download | subsurface-31123f63af0a2b6a9756b8496f56359d1c68a645.tar.gz |
Split the dive list in columns. Columns are sortable now (name = date, depth, duration)
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/parse-xml.c b/parse-xml.c index 635bf56f2..a2c685ed5 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -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); |