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.

  • bitfucker@programming.dev
    link
    fedilink
    arrow-up
    9
    ·
    1 day ago

    For a strong typed language, an integer division should not cast to any other data type. Even assigning a float to an integer should not be allowed (that’s why C is not really strongly typed). I think from the syntax it was PHP. If any of the dimensions were not divisible by 2, then the number changed from integer to float and it could cause an issue somewhere downstream the video processing pipeline.

    • notthebees@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I don’t think it’s reexporting a video or something, I think it’s the embed bc it is a CMS. PHP 5 isn’t that old so video in webpages isn’t a novel idea.

      But you’re right. Can’t halve a pixel.

      • bitfucker@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        1 day ago

        Do note that PHP5 is old, predating HTML5. Browsers probably still struggle with malformed HTML and in the absence of any sane value, just crash. Also, who knows if it was even HTML. For all I know it could be a flash.

        • notthebees@reddthat.com
          link
          fedilink
          arrow-up
          1
          ·
          1 day ago

          Fuck, I forgot about Flash. I didn’t think it was that old. Odds are it’s just some other internal video player tbh.

    • cristian64@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      OP didn’t say that the problem was with the change in type. I think the interesting part is the downstream issue: what failed when a float was given while an integer was expected?