From a9505ed57f383bcdb2bfbf484b79ea5a54b1d89b Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sun, 26 Apr 2009 23:21:12 +0200 Subject: [PATCH] Small hack to handle temperature values in 1000th of degree. --- breezed.cc | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.20.1