Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Better % Rounding For Disk Space Used

    Scheduled Pinned Locked Moved webGUI
    4 Posts 2 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      firebox
      last edited by

      I am trying to get the % to round more accurately for disk space used. I have updated the math code in the functions file and try editing the system information widget, but I cant seem to get the % to change from just rounding up. If anyone can help me please PM me. I had my custom code working in 2.1.5, but I like the bars better in 2.2 so I am updating all my custom code.

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Javascript, CSS etc files will need to be refershed in the browser every time you change the file on pfSense.
        It might just be that the browser is caching that stuff and so never receives and runs your changed files.

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • F
          firebox
          last edited by

          @phil.davis:

          Javascript, CSS etc files will need to be refershed in the browser every time you change the file on pfSense.
          It might just be that the browser is caching that stuff and so never receives and runs your changed files.

          I changed the code in system info and got it to work, but I cant get the right filesystem info to show up without the RAM mount to show up as well

          1 Reply Last reply Reply Quote 0
          • F
            firebox
            last edited by

            Figured it out, will need to do some re-coding

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.