]> git.tdb.fi Git - ext/subsurface.git/blobdiff - parse-xml.c
Split the dive list in columns. Columns are sortable now (name = date, depth, duration)
[ext/subsurface.git] / parse-xml.c
index 635bf56f208b24730761c8e60143dc54e064bd4a..a2c685ed523ed39b2b9b692f92760d175e4a61a3 100644 (file)
@@ -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);