- ok = 1;
-
- GNUNET_STATISTICS_get (p1.stats,
- "core",
- "# discarded CORE_SEND requests",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p1);
-
- GNUNET_STATISTICS_get (p1.stats,
- "core",
- "# discarded CORE_SEND request bytes",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p1);
- GNUNET_STATISTICS_get (p1.stats,
- "core",
- "# discarded lower priority CORE_SEND requests",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, NULL);
- GNUNET_STATISTICS_get (p1.stats,
- "core",
- "# discarded lower priority CORE_SEND request bytes",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p1);
- GNUNET_STATISTICS_get (p2.stats,
- "core",
- "# discarded CORE_SEND requests",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p2);
-
- GNUNET_STATISTICS_get (p2.stats,
- "core",
- "# discarded CORE_SEND request bytes",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p2);
- GNUNET_STATISTICS_get (p2.stats,
- "core",
- "# discarded lower priority CORE_SEND requests",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p2);
- GNUNET_STATISTICS_get (p2.stats,
- "core",
- "# discarded lower priority CORE_SEND request bytes",
- GNUNET_TIME_UNIT_FOREVER_REL,
- NULL,
- &print_stat, &p2);
-
- enum GNUNET_ErrorType kind = GNUNET_ERROR_TYPE_DEBUG;
- if (ok==1)
- {
- kind = GNUNET_ERROR_TYPE_ERROR;
- }
+ ok = 0; /* pass */
+ GNUNET_STATISTICS_get (p1.stats, "core", "# discarded CORE_SEND requests",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p1);
+
+ GNUNET_STATISTICS_get (p1.stats, "core",
+ "# discarded CORE_SEND request bytes",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p1);
+ GNUNET_STATISTICS_get (p1.stats, "core",
+ "# discarded lower priority CORE_SEND requests",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, NULL);
+ GNUNET_STATISTICS_get (p1.stats, "core",
+ "# discarded lower priority CORE_SEND request bytes",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p1);
+ GNUNET_STATISTICS_get (p2.stats, "core", "# discarded CORE_SEND requests",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p2);
+
+ GNUNET_STATISTICS_get (p2.stats, "core",
+ "# discarded CORE_SEND request bytes",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p2);
+ GNUNET_STATISTICS_get (p2.stats, "core",
+ "# discarded lower priority CORE_SEND requests",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p2);
+ GNUNET_STATISTICS_get (p2.stats, "core",
+ "# discarded lower priority CORE_SEND request bytes",
+ GNUNET_TIME_UNIT_FOREVER_REL, NULL, &print_stat, &p2);
+
+ if (ok != 0)
+ kind = GNUNET_ERROR_TYPE_ERROR;