Removed delayed datagram statistics.
--- a/master/master.c Tue Aug 15 09:21:13 2006 +0000
+++ b/master/master.c Tue Aug 15 09:22:22 2006 +0000
@@ -242,7 +242,6 @@
master->debug_level = 0;
master->stats.timeouts = 0;
- master->stats.delayed = 0;
master->stats.corrupted = 0;
master->stats.skipped = 0;
master->stats.unmatched = 0;
@@ -422,10 +421,6 @@
unsigned int cmd_follows, matched;
const uint8_t *cur_data;
ec_datagram_t *datagram;
- cycles_t cycles_received, cycles_timeout;
-
- cycles_received = get_cycles();
- cycles_timeout = EC_IO_TIMEOUT * cpu_khz / 1000;
if (unlikely(size < EC_FRAME_HEADER_SIZE)) {
master->stats.corrupted++;
@@ -492,12 +487,6 @@
// dequeue the received datagram
datagram->state = EC_DATAGRAM_RECEIVED;
list_del_init(&datagram->queue);
-
- // was the datagram reception delayed?
- if (cycles_received - datagram->cycles_sent > cycles_timeout) {
- master->stats.delayed++;
- ec_master_output_stats(master);
- }
}
}
@@ -546,10 +535,6 @@
EC_WARN("%i datagrams TIMED OUT!\n", master->stats.timeouts);
master->stats.timeouts = 0;
}
- if (master->stats.delayed) {
- EC_WARN("%i frame(s) DELAYED!\n", master->stats.delayed);
- master->stats.delayed = 0;
- }
if (master->stats.corrupted) {
EC_WARN("%i frame(s) CORRUPTED!\n", master->stats.corrupted);
master->stats.corrupted = 0;
--- a/master/master.h Tue Aug 15 09:21:13 2006 +0000
+++ b/master/master.h Tue Aug 15 09:22:22 2006 +0000
@@ -72,7 +72,6 @@
typedef struct
{
unsigned int timeouts; /**< datagram timeouts */
- unsigned int delayed; /**< delayed datagrams */
unsigned int corrupted; /**< corrupted frames */
unsigned int skipped; /**< skipped datagrams (the ones that were
requeued when not yet received) */