]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Small improvement to plot info debugging code
authorDirk Hohndel <dirk@hohndel.org>
Mon, 12 Dec 2011 18:13:03 +0000 (10:13 -0800)
committerDirk Hohndel <dirk@hohndel.org>
Mon, 12 Dec 2011 18:13:03 +0000 (10:13 -0800)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
profile.c

index 5d5aff5187776971f53331d023937438444b5b67..822e30c0e11e5c217e84235578cfde08b6445fdb 100644 (file)
--- a/profile.c
+++ b/profile.c
@@ -168,9 +168,10 @@ static void dump_pi (struct plot_info *pi)
                pi->maxpressure, pi->mintemp, pi->maxtemp);
        for (i = 0; i < pi->nr; i++)
                printf("    entry[%d]:{same_cylinder:%d cylinderindex:%d sec:%d pressure:{%d,%d}\n"
-                       "                temperature:%d depth:%d smoothed:%d}\n",
+                       "                time:%d:%02d temperature:%d depth:%d smoothed:%d}\n",
                        i, pi->entry[i].same_cylinder, pi->entry[i].cylinderindex, pi->entry[i].sec,
                        pi->entry[i].pressure[0], pi->entry[i].pressure[1],
+                       pi->entry[i].sec / 60, pi->entry[i].sec % 60,
                        pi->entry[i].temperature, pi->entry[i].depth, pi->entry[i].smoothed);
        printf("   }\n");
 }