Update of /export/home/ntop/ntop/plugins
In directory unknown:/tmp/cvs-serv1068/plugins

Modified Files:
        rrdPlugin.c 
Log Message:
And of course, add the remote to remote traffic to the graph.

--- plugins/rrdPlugin.c.orig    2005-04-03 21:15:12.731432832 +0200
+++ plugins/rrdPlugin.c 2005-04-03 21:14:36.977868200 +0200
@@ -2965,7 +2965,7 @@
        updateGauge(rrdPath,   "activeHostSendersNum",  
numActiveSenders(devIdx));
        updateCounter(rrdPath, "ipBytes",       
myGlobals.device[devIdx].ipBytes.value);

-       updateCounter(rrdPath, "ipLocalBytes",  
myGlobals.device[devIdx].tcpGlobalTrafficStats.local.value +
+       updateCounter(rrdPath, "ipLocalToLocalBytes",  
myGlobals.device[devIdx].tcpGlobalTrafficStats.local.value +
                                                
myGlobals.device[devIdx].udpGlobalTrafficStats.local.value +
                                                
myGlobals.device[devIdx].icmpGlobalTrafficStats.local.value );
        updateCounter(rrdPath, "ipLocalToRemoteBytes",    
myGlobals.device[devIdx].tcpGlobalTrafficStats.local2remote.value +
@@ -2974,6 +2974,9 @@
        updateCounter(rrdPath, "ipRemoteToLocalBytes", 
myGlobals.device[devIdx].tcpGlobalTrafficStats.remote2local.value +
                                                
myGlobals.device[devIdx].udpGlobalTrafficStats.remote2local.value +
                                                
myGlobals.device[devIdx].icmpGlobalTrafficStats.remote2local.value );
+       updateCounter(rrdPath, "ipRemoteToRemoteBytes", 
myGlobals.device[devIdx].tcpGlobalTrafficStats.remote.value +
+                                               
myGlobals.device[devIdx].udpGlobalTrafficStats.remote.value +
+                                               
myGlobals.device[devIdx].icmpGlobalTrafficStats.remote.value );

        if(myGlobals.device[devIdx].netflowGlobals != NULL) {
          updateCounter(rrdPath, "NF_numFlowPkts", 
myGlobals.device[devIdx].netflowGlobals->numNetFlowsPktsRcvd);



_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to