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

    Monitoring Graph Y Axis

    Scheduled Pinned Locked Moved webGUI
    3 Posts 2 Posters 942 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.
    • N
      NOYB
      last edited by

      Think the Y axis scale could use a little work.
      (see attached image)

      ![StatusMonitoring OpenVPN Users.jpg](/public/imported_attachments/1/StatusMonitoring OpenVPN Users.jpg)
      ![StatusMonitoring OpenVPN Users.jpg_thumb](/public/imported_attachments/1/StatusMonitoring OpenVPN Users.jpg_thumb)

      1 Reply Last reply Reply Quote 0
      • jdillardJ
        jdillard
        last edited by

        It looks like "vpnusers" below might need to be ".2f" instead.

        
        //lookup axis formating based on graph name
        var formatLookup = {
        	"states": ".2s",
        	"throughput": ".2s",
        	"cpu": ".2s",
        	"processor": ".2f",
        	"memory": ".2f",
        	"mbuf": ".2s",
        	"packets": ".2s",
        	"vpnusers": ".2s",
        	"quality": ".2f",
        	"traffic": ".2s",
        	"queue" : ".2s",
        	"queuedrops" : ".2s",
        	"wireless" : ".2s",
        	"cellular" : ".2s"
        };
        
        

        That was it. I'll commit today.

        1 Reply Last reply Reply Quote 0
        • N
          NOYB
          last edited by

          When I set that it puts the zero line in the middle.  Allowing for negative users.  Number of users can never be negative.

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