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

    Traffic Graph Inverse Reversed?

    Scheduled Pinned Locked Moved webGUI
    13 Posts 5 Posters 1.9k 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.
    • KOMK
      KOM
      last edited by

      Or you could just accept that in this graph, north is inbound, south is outbound.  How do you determine which way is "correct"??  Is there an IEEE or ISO spec on traffic graph axes?  ;D

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        You could turn the monitor upside down ;)  But then it will be flowing right to left…

        It should be a real simple change to do what he wants, prob nobody ever asked for it before is all..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • M
          mgittelman
          last edited by

          Yeah, it's probably unfair of me to say what is "correct."  It's obviously just a preference.  I have always thought of inbound traffic as "down" like "downloads" or flowing down to me with uploads going up up away and out.

          I'm sure many other people think of it differently or don't care.  I figured it doesn't hurt to ask though!

          1 Reply Last reply Reply Quote 0
          • K
            kpa
            last edited by

            Network interfaces have very natural in and out directions and that is where the pfSense conventions and terminology come from.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              he is not talking about the convention of in out.. The data would be the same - he just want to flip the graph over.. So that the out is shown on the top and in is shown on the bottom.. That is my understanding..

              Its just a cosmetic thing to the graph, not changing in out data on the interface.. Just which variable gets graphed on top and which on bottom when you pick inverse.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • KOMK
                KOM
                last edited by

                I figured it doesn't hurt to ask though!

                It certainly doesn't.  In fact, that's how some new features and fixes have appeared over the years.

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  ^ exactly… I don't see how you can change colors either - which would nice eye candy as well. That way you could use fav sportsball team colors...

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • GertjanG
                    Gertjan
                    last edited by

                    Hi,

                    Inversing "In" and "Out" when using Status => Traffic Graph on WAN ?

                    Quick and dirty (means : I didn't look for side effects) solution  :

                    /usr/local/www/js/traffic-graphs.js
                    Goto line 290.
                    See

                    					if(window.invert) {
                    						trafficOut = 0 - trafficOut;
                    					}
                    
                    ```Change for
                    
                    				if(window.invert) {
                    					trafficOut = 0 + trafficOut;
                    					trafficIn = 0 - trafficIn; 
                    				}
                    
                    
                    valid for version pfSense
                    2.4.2-RELEASE-p1 (amd64)
                    built on Tue Dec 12 13:45:26 CST 2017
                    
                    Works doe me :
                    
                    ![graphs.PNG](/public/_imported_attachments_/1/graphs.PNG)
                    ![graphs.PNG_thumb](/public/_imported_attachments_/1/graphs.PNG_thumb)

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    1 Reply Last reply Reply Quote 1
                    • KOMK
                      KOM
                      last edited by

                      Quick and dirty (means : I didn't look for side effects) solution

                      You are a stable genius.

                      1 Reply Last reply Reply Quote 0
                      • M
                        mgittelman
                        last edited by

                        Hey look at that!  It works!

                        Thanks so much Gertjan!!

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