# HG changeset patch # User Daniele Nicolodi # Date 1363863726 -3600 # Node ID 9daa5e2e4b116da34f8deace63fd86cd055d960a # Parent 6ac1d3de1ae2aa05e9b79ad0530b6965f3058c12 Julian day is never used. Remove it diff -r 6ac1d3de1ae2 -r 9daa5e2e4b11 FXAnalyse.c --- a/FXAnalyse.c Thu Mar 21 11:59:11 2013 +0100 +++ b/FXAnalyse.c Thu Mar 21 12:02:06 2013 +0100 @@ -30,7 +30,6 @@ char LogFileName[MAX_PATHNAME_LEN]; double utc = 0; -double mjd = 0; double Ch1, Ch2, Ch3, Ch4; double Math1, Math2, Math3, Math4, Math5; @@ -202,7 +201,6 @@ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" "+-*^/?<>=#!$%&|~'_"); mupDefineVar(parser, "UTC", &utc); - mupDefineVar(parser, "MJD", &mjd); mupDefineVar(parser, "Ch1", &Ch1); mupDefineVar(parser, "Ch2", &Ch2); mupDefineVar(parser, "Ch3", &Ch3); @@ -606,10 +604,7 @@ LocalTime.tm_isdst = -1; // daylight saving flag MUST be set to -1 (unallocated is bugging and +1 is making 1 hour error in summer) utcTime = mktime (&LocalTime); utc = (double) utcTime + strtod(Sec,NULL); - mjd=utc/86400.; //nb de jours depuis l'origine d'UTC (01/01/1900 à 00h00 GMT) - mjd+=15020; //date MJD de la date origine d'UTC SetCtrlVal(MainPanel, PANEL_UTC, utc); - SetCtrlVal(MainPanel, PANEL_MJD, mjd); // scan the line for counters's channels information