exec_cmd_proc (void *cls, const char *line)
{
struct SysmonProperty *sp = cls;
+ unsigned long long tmp;
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Property output: `%s'\n", line);
if (NULL == line)
{
switch (sp->value_type) {
case v_numeric:
- if (1 != sscanf (line, "%lu", &sp->num_val))
+ if (1 != sscanf (line, "%llu", &tmp))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Command output was not a numerical value: `%s'\n", line);
return;
break;
default:
break;
+
}
+ sp->num_val = tmp;
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Property output: `%s'\n", line);
put_property (sp);