• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. lhovarter
    3. Topics
    L
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 13
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by lhovarter

    • L

      Pie charts on dashboard showing incorrect total and used size for Storage nodes

      FOG Problems
      • • • lhovarter
      5
      0
      Votes
      5
      Posts
      1.5k
      Views

      L

      Ok, I found the reason. My old nodes are all 32-bit (we run fog on recycled hardware basically), my new node is 64-bit. In the freespace.php a recent change (somewhere within the last few months) made calculating $hdtotal and $hdused use intval(). This made them integers which is not a big deal on 64-bit systems in PHP but in 32-bit systems the harddrive space in bits is higher than the maximum size of an integer. If I restore the old freespace.php file it works fine.

      I don’t know a lot about coding in PHP but is there a way to cast the result of the calculation to a double or long for 32-bit compatibility?

    • L

      Solved Snapin Problems

      FOG Problems
      • • • lhovarter
      18
      0
      Votes
      18
      Posts
      5.3k
      Views

      L

      No problem, thanks for the swift response and fix!

    • 1 / 1