diff -Naur temper.orig/99-tempsensor.rules temper/99-tempsensor.rules --- temper.orig/99-tempsensor.rules 1970-01-01 09:00:00.000000000 +0900 +++ temper/99-tempsensor.rules 2014-01-15 16:18:45.938781189 +0900 @@ -0,0 +1 @@ +SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="0c45", ATTRS{idProduct}=="7401", MODE="666" diff -Naur temper.orig/temper.c temper/temper.c --- temper.orig/temper.c 2014-01-15 15:32:51.346960135 +0900 +++ temper/temper.c 2014-01-15 15:33:22.926012547 +0900 @@ -9,8 +9,8 @@ /* Calibration adjustments */ /* See http://www.pitt-pladdy.com/blog/_20110824-191017_0100_TEMPer_under_Linux_perl_with_Cacti/ */ -static float scale = 1.0287; -static float offset = -0.85; +static float scale = 1.0; +static float offset = 0.0; int main(){ int passes = 0; @@ -41,7 +41,7 @@ struct tm *utc; time_t t; t = time(NULL); - utc = gmtime(&t); + utc = localtime(&t); char dt[80]; strftime(dt, 80, "%d-%b-%Y %H:%M", utc);