equal
deleted
inserted
replaced
1 /****************************************************************************** |
1 /****************************************************************************** |
2 * |
2 * |
3 * $Id$ |
3 * $Id: datagram.c,v 74e6ac2369f4 2010/02/23 14:13:56 fp $ |
4 * |
4 * |
5 * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH |
5 * Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH |
6 * |
6 * |
7 * This file is part of the IgH EtherCAT Master. |
7 * This file is part of the IgH EtherCAT Master. |
8 * |
8 * |
560 */ |
560 */ |
561 void ec_datagram_output_stats( |
561 void ec_datagram_output_stats( |
562 ec_datagram_t *datagram |
562 ec_datagram_t *datagram |
563 ) |
563 ) |
564 { |
564 { |
565 if (jiffies - datagram->stats_output_jiffies < HZ) { |
565 if (jiffies - datagram->stats_output_jiffies > HZ) { |
566 datagram->stats_output_jiffies = jiffies; |
566 datagram->stats_output_jiffies = jiffies; |
567 |
567 |
568 if (unlikely(datagram->skip_count)) { |
568 if (unlikely(datagram->skip_count)) { |
569 EC_WARN("Datagram %p (%s) was SKIPPED %u time%s.\n", |
569 EC_WARN("Datagram %p (%s) was SKIPPED %u time%s.\n", |
570 datagram, datagram->name, |
570 datagram, datagram->name, |