Added EoE rate in KB/s to master info.
authorFlorian Pose <fp@igh-essen.com>
Tue, 08 Aug 2006 13:06:36 +0000
changeset 341 f8aa65e05ff4
parent 340 5a5f5a14c847
child 342 cbcff2f19e99
Added EoE rate in KB/s to master info.
master/master.c
--- a/master/master.c	Tue Aug 08 13:06:02 2006 +0000
+++ b/master/master.c	Tue Aug 08 13:06:36 2006 +0000
@@ -757,8 +757,9 @@
     if (!list_empty(&master->eoe_handlers))
         off += sprintf(buffer + off, "\nEoE statistics (RX/TX) [bps]:\n");
     list_for_each_entry(eoe, &master->eoe_handlers, list) {
-        off += sprintf(buffer + off, "  %s: %u / %u\n",
-                       eoe->dev->name, eoe->rx_rate, eoe->tx_rate);
+        off += sprintf(buffer + off, "  %s: %u / %u (%u KB/s)\n",
+                       eoe->dev->name, eoe->rx_rate, eoe->tx_rate,
+                       ((eoe->rx_rate + eoe->tx_rate) / 8 + 512) / 1024);
     }
 
     off += sprintf(buffer + off, "\n");