From fd7aad68761524be378dbe90554b0c0d0556bcbe Mon Sep 17 00:00:00 2001 From: "Sean C. Rhea" Date: Wed, 7 Mar 2007 20:44:49 +0000 Subject: [PATCH] patch from Aldy to make wattage an integer in CVS exports --- src/cmd/ptunpk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/ptunpk.c b/src/cmd/ptunpk.c index 5911ddb25..bd64a42a8 100644 --- a/src/cmd/ptunpk.c +++ b/src/cmd/ptunpk.c @@ -76,7 +76,7 @@ csv_data_cb(double secs, double nm, double mph, double watts, double miles, context = NULL; fprintf(out, "%7.3f, %10.1f,", secs / 60.0, nm); if (mph == -1.0) - fprintf(out, " 0.0, 0.0,"); + fprintf(out, " 0.0, 0,"); else fprintf(out, "%6.1f, %5.0f,", metric ? (mph / KM_TO_MI) : mph, watts); fprintf(out, "%8.3f, %7d,", metric ? (miles / KM_TO_MI) : miles, cad);