/*
This file is part of GNUnet.
- (C)
+ Copyright (C)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
* @return #GNUNET_YES
*/
static int
-sensor_watcher (void *cls, struct GNUNET_PEERSTORE_Record *record, char *emsg)
+sensor_watcher (void *cls,
+ const struct GNUNET_PEERSTORE_Record *record,
+ const char *emsg)
{
struct SensorModel *model = cls;
double *val;
{
model->anomalous = GNUNET_YES;
LOG (GNUNET_ERROR_TYPE_WARNING,
- "Anomaly state started for sensor `%s'.\n", model->sensor->name);
+ "Anomaly state started for sensor `%s', value: %f.\n",
+ model->sensor->name, val);
SENSOR_reporting_anomaly_update (model->sensor, model->anomalous);
}
}
model->negative_count >= confirmation_count)
{
model->anomalous = GNUNET_NO;
- LOG (GNUNET_ERROR_TYPE_INFO, "Anomaly state stopped for sensor `%s'.\n",
- model->sensor->name);
+ LOG (GNUNET_ERROR_TYPE_INFO,
+ "Anomaly state stopped for sensor `%s', value: %f.\n",
+ model->sensor->name, val);
SENSOR_reporting_anomaly_update (model->sensor, model->anomalous);
}
}