int e, tr, qd = 0;
service_t *s;
+ /* Reset stat counters */
+ service_mapper_reset_stats();
+
/* Store config */
service_mapper_conf = *conf;
pthread_mutex_unlock(&global_lock);
return NULL;
}
+
+void
+service_mapper_reset_stats (void)
+{
+ service_mapper_stat.total = 0;
+ service_mapper_stat.ok = 0;
+ service_mapper_stat.ignore = 0;
+ service_mapper_stat.fail = 0;
+ service_mapper_stat.active = NULL;
+}
*/
int service_mapper_clean ( struct service *s, struct channel *ch, void *origin );
+// Resets the stat counters
+void service_mapper_reset_stats ( void );
+
#endif /* __TVH_SERVICE_MAPPER_H__ */