Menu

#107 NutGetMillis() Overflow commented wrong

All Platforms
open
3
2010-04-30
2010-02-07
No

José Vallet reported

NutGetMillis returns an uint32_t, and (2^32)/1000/3600/24 is about 49.71 (days). So the overflow of the amount of milliseconds since start time is maximum about 49.71 days, and not 7.9 _years_ as is suggested in the documentation.

I bring this to notice as I found this info not only in the comments of the function, but also now in the NutOS Software Manual (page 37)
http://www.ethernut.de/pdf/enswm28e.pdf

Discussion

  • Ulrich Prinz

    Ulrich Prinz - 2010-02-07
    • assigned_to: nobody --> haraldkipp
    • status: open --> pending
     
  • Ulrich Prinz

    Ulrich Prinz - 2010-02-07

    Corrected the comment in timer.c in revision 2888.
    Documentation is pending.

     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • Ulrich Prinz

    Ulrich Prinz - 2010-04-30
    • status: closed --> open
     

Log in to post a comment.

MongoDB Logo MongoDB