[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#645594: Acknowledgement (flite_time says wrong time at xx:x4 and xx:x9)



I had a quick look at the code, and I think the error is in
main/flite_time_main.c in function time_approx().

It looks like there was an  old way to work out if the word "exaclty"
should be used, which was to compare the minutes against 0 and 5,
but then a new way was used, which worked out the minutes modulo 5
and compared that with 0 only but that the 'if' condition was not
updated correctly. That's my guess anyway.

I think just changing line 115 from:

    if ((mm == 0) || (mm == 4))

to:

    if (mm == 0)

should fix it (not verified).

HTH

Alexis



Reply to: