Fixed datagram statistics output (skipped datagrams). stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Fri, 08 Jul 2011 14:23:22 +0200
branchstable-1.5
changeset 2081 9c3fd68997d4
parent 2075 876b2482608e
child 2082 775d1a02f204
Fixed datagram statistics output (skipped datagrams).
master/datagram.c
--- a/master/datagram.c	Mon May 16 10:59:10 2011 +0200
+++ b/master/datagram.c	Fri Jul 08 14:23:22 2011 +0200
@@ -1,6 +1,6 @@
 /******************************************************************************
  *
- *  $Id$
+ *  $Id: datagram.c,v 74e6ac2369f4 2010/02/23 14:13:56 fp $
  *
  *  Copyright (C) 2006-2008  Florian Pose, Ingenieurgemeinschaft IgH
  *
@@ -562,7 +562,7 @@
         ec_datagram_t *datagram
         )
 {
-    if (jiffies - datagram->stats_output_jiffies < HZ) {
+    if (jiffies - datagram->stats_output_jiffies > HZ) {
         datagram->stats_output_jiffies = jiffies;
     
         if (unlikely(datagram->skip_count)) {