Small hack to handle temperature values in 1000th of degree.
authorFrancois Fleuret <francois@fleuret.org>
Sun, 26 Apr 2009 21:21:12 +0000 (23:21 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Sun, 26 Apr 2009 21:21:12 +0000 (23:21 +0200)
breezed.cc

index 4f2302d..ae61293 100644 (file)
@@ -471,6 +471,10 @@ Written by Francois Fleuret (francois@fleuret.org).\n";
               cout << " " << t;
             }
 
+            // So that we can deal with the new files where the
+            // temperature are in 1/1000th of C
+            if(t > 1000) t /= 1000;
+
             if(t > temperature) temperature = t;
           }
         }