30 lines
1.6 KiB
Diff
30 lines
1.6 KiB
Diff
|
--- ntop-5.0.1/report.c.orig 2015-09-17 12:25:09.947886000 +0200
|
||
|
+++ ntop-5.0.1/report.c 2015-09-17 12:26:31.339886000 +0200
|
||
|
@@ -1784,7 +1784,7 @@
|
||
|
for(i=0; i<myGlobals.l7.numSupportedProtocols; i++) {
|
||
|
if(myGlobals.device[myGlobals.actualReportDeviceId].l7.protoTraffic[i]) {
|
||
|
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<TD "TD_BG" ALIGN=RIGHT>%s</TD>",
|
||
|
- formatBytes(el->l7.traffic[i].bytesRcvd, 1, formatBuf, sizeof(formatBuf)));
|
||
|
+ formatBytes(el->l7.traffic[i].bytesRcvd/2, 1, formatBuf, sizeof(formatBuf)));
|
||
|
sendString(buf);
|
||
|
}
|
||
|
}
|
||
|
@@ -1807,7 +1807,7 @@
|
||
|
for(i=0; i<myGlobals.l7.numSupportedProtocols; i++) {
|
||
|
if(myGlobals.device[myGlobals.actualReportDeviceId].l7.protoTraffic[i] > 0) {
|
||
|
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<TD "TD_BG" ALIGN=RIGHT>%s</TD>",
|
||
|
- formatBytes(el->l7.traffic[i].bytesSent, 1, formatBuf, sizeof(formatBuf)));
|
||
|
+ formatBytes(el->l7.traffic[i].bytesSent/2, 1, formatBuf, sizeof(formatBuf)));
|
||
|
sendString(buf);
|
||
|
}
|
||
|
}
|
||
|
@@ -1830,7 +1830,7 @@
|
||
|
for(i=0; i<myGlobals.l7.numSupportedProtocols; i++) {
|
||
|
if(myGlobals.device[myGlobals.actualReportDeviceId].l7.protoTraffic[i] > 0) {
|
||
|
safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "<TD "TD_BG" ALIGN=RIGHT>%s</TD>",
|
||
|
- formatBytes(el->l7.traffic[i].bytesSent + el->l7.traffic[i].bytesRcvd, 1, formatBuf, sizeof(formatBuf)));
|
||
|
+ formatBytes((el->l7.traffic[i].bytesSent + el->l7.traffic[i].bytesRcvd)/2, 1, formatBuf, sizeof(formatBuf)));
|
||
|
sendString(buf);
|
||
|
}
|
||
|
}
|