Skip to content

Fix sys.time overflow #254

@GoogleCodeExporter

Description

@GoogleCodeExporter
Report from Marcus Priesch via email on 2013/11/01::

Hello Dean,

today i did some testing ... and sys.time () overflow every 49 days caused me
some headaches ... ,)

with your implementation sys.time yould have thrown a type error in the
latter 49/2 days ;) - which nevertheless would have restarted the application
in my case ... also the scheduler would have stopped after an oferrun ...

this led me to the attached patch ...

sys.time () now only returns msecs until sys.maxint is reached, when
overflowing, sys.wait () now also handles this correctly ...

feel free to adapt ;)

regards,
marcus.

Original issue reported on code.google.com by dwhall...@gmail.com on 5 Nov 2013 at 4:10

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions