Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    here is a patch to compact the traffic totals output

    Scheduled Pinned Locked Moved Traffic Monitoring
    1 Posts 1 Posters 529 Views 1 Watching
    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.
    • C
      chrcoluk
      last edited by chrcoluk

      It removes the ratio columns, allowing for more interfaces to show on one screen.

      Use the System_Patches package then you can add this as a patch in that.

      Set path strip count to 0

      Base directory to /

      --- /usr/local/www/status_traffic_totals.php   2018-05-23 22:04:39.000000000 +0100
      +++ /usr/local/www/status_traffic_totals.php     2019-08-30 12:37:10.926071000 +0100
      @@ -1055,7 +1055,7 @@
                      for(var i = 0; i < data.length; i += 2) {
                              var key = data[i].key.substring(0,data[i].key.length-5);
       
      -                       header += '<th>' + key + ' TX</th><th>' + key + ' RX</th><th>' + key + ' Ratio</th><th>' + key + ' Total</th>';
      +                       header += '<th>' + key + ' TX</th><th>' + key + ' RX</th><th>' + key + ' Total</th>';
                      }
       
                      header += '</tr>';
      @@ -1147,7 +1147,7 @@
                                                      totalUnit = 'TiB';
                                              }
       
      -                                       body += '<td>' + tx.toFixed(2) + ' ' + txUnit + '</td><td>' + rx.toFixed(2) + ' ' + rxUnit + '</td><td>' + ratio.toFixed(2) + '</td><td>' + total.toFixed(2) + ' ' + totalUnit + '</td>';
      +                                       body += '<td>' + tx.toFixed(2) + ' ' + txUnit + '</td><td>' + rx.toFixed(2) + ' ' + rxUnit + '</td><td>' + total.toFixed(2) + ' ' + totalUnit + '</td>';
       
                                      }
       
      @@ -1260,7 +1260,7 @@
                                                      totalUnit = 'TiB';
                                              }
       
      -                                       body += '<td>' + tx.toFixed(2) + ' ' + txUnit + '</td><td>' + rx.toFixed(2) + ' ' + rxUnit + '</td><td>' + ratio.toFixed(2) + '</td><td>' + total.toFixed(2) + ' ' + totalUnit + '</td>';
      +                                       body += '<td>' + tx.toFixed(2) + ' ' + txUnit + '</td><td>' + rx.toFixed(2) + ' ' + rxUnit + '</td><td>' + total.toFixed(2) + ' ' + totalUnit + '</td>';
                                      }
       
                                      body += '</tr>';
      

      pfSense CE 2.9.0

      1 Reply Last reply
      Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post
      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
      Privacy Policy · Cookie Policy