A while back I was developing a workflow scheduler. However the run duration kept coming back negative. The runs kept finishing like 15 seconds before they started. Eventually I figured out why; the company had configured a policy to use their custom NTP server, but it was 16.7 seconds off. So my Windows laptop’s time was in the future, but the WSL VM (which ran the program) used another NTP server and was correct. In the end I just added a bodge that made the program request the time from an external server on startup to calculate an offset.

  • Bananskal@nord.pub
    link
    fedilink
    English
    arrow-up
    10
    ·
    21 hours ago

    Took a course during uni on computer graphics and one assignment I handed in needed correction, so I spent the better part of a summer trying to debug and find the flaw. Difficult to debug the graphics pipeline back then and with basically no tutors on hand during vacation times.

    Turns there was nothing wrong with my thinking and program logic, I had just accidentally written two adjacent lines in the wrong order.

    I transposed them, everything worked.

    I was both relieved and pissed off at the same time. So clumsy.