From f928df6cafd29c31054d6896448b59a3f98dc400 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 19 Feb 2006 13:59:39 +0000 Subject: [PATCH] display deposit depths < 1mm correctly (although this is rather a theoretical problem :-) --- src/Main/metar_main.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index 9cf37f901..c5ee10d75 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -269,7 +269,7 @@ void printReport(SGMetar *m) if ((s = rwy.getExtentString()) && strlen(s)) surface.push_back(s); if ((d = rwy.getDepth()) != NaN) { - sprintf(buf, "%.0lf mm", d * 1000.0); + sprintf(buf, "%.1lf mm", d * 1000.0); surface.push_back(buf); } if ((s = rwy.getFrictionString()) && strlen(s)) -- 2.39.5