From: Francois Fleuret Date: Sun, 26 Apr 2009 21:21:12 +0000 (+0200) Subject: Small hack to handle temperature values in 1000th of degree. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9505ed57f383bcdb2bfbf484b79ea5a54b1d89b;p=breezed.git Small hack to handle temperature values in 1000th of degree. --- diff --git a/breezed.cc b/breezed.cc index 4f2302d..ae61293 100644 --- a/breezed.cc +++ b/breezed.cc @@ -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; } }