Skip to content

Using any integer larger than 0 for COOL_DURATION likely results in the script running a whole day #4

@Scroey

Description

@Scroey

Probably faulty math or wrong moment to evaulate the term.

wtf minutes
The error is likely in

while((datetime.now() - start_time) < timedelta(hours=HOT_DURATION+COOL_DURATION)):

I used HOT_DURATION = 3 and COOL_DURATION = 1
Error occurred both when the end of the measurement would have been just after midnight and in the middle of the day, so it is probably not a calendar-day related issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions