]> git.cworth.org Git - fips/blobdiff - metrics.c
Add an explanatory comment for a surprisingly-unused field.
[fips] / metrics.c
index 39ed5bacf2f9733010b5564893e76b9f7b0be1a1..1ebdac75399c9b66b33dd2a5ebd8cc1e8ad1faa0 100644 (file)
--- a/metrics.c
+++ b/metrics.c
@@ -37,6 +37,9 @@ typedef struct counter
 
 typedef struct program_metrics
 {
+       /* This happens to also be the index into the
+        * ctx->program_metrics array currently
+        */
        unsigned id;
        double ticks;
 } program_metrics_t;
@@ -135,7 +138,7 @@ print_program_metrics (void)
        for (i = 0; i < ctx->num_program_metrics; i++) {
                if (ctx->program_metrics[i].ticks == 0.0)
                        continue;
-               printf ("Program %d:\t%7.2f mega-ticks\n",
+               printf ("Program %d:\t%7.2f ms\n",
                        i, ctx->program_metrics[i].ticks / 1e6);
        }
 }