diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-29 09:07:39 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-11-29 09:07:39 +0000 |
commit | 1ed0cb5f2f873e568f49af018c78454642c86189 (patch) | |
tree | 81c17377a2737ff64d7f8c4c3c93292f8806726a /src/sysmon | |
parent | a9fad0d41c5211b04c3e2495f86f81882988cad9 (diff) | |
download | gnunet-1ed0cb5f2f873e568f49af018c78454642c86189.tar.gz gnunet-1ed0cb5f2f873e568f49af018c78454642c86189.zip |
type issues
Diffstat (limited to 'src/sysmon')
-rw-r--r-- | src/sysmon/gnunet-daemon-sysmon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sysmon/gnunet-daemon-sysmon.c b/src/sysmon/gnunet-daemon-sysmon.c index 387c4bd2e..3fb0fdd5a 100644 --- a/src/sysmon/gnunet-daemon-sysmon.c +++ b/src/sysmon/gnunet-daemon-sysmon.c | |||
@@ -224,6 +224,7 @@ static void | |||
224 | exec_cmd_proc (void *cls, const char *line) | 224 | exec_cmd_proc (void *cls, const char *line) |
225 | { | 225 | { |
226 | struct SysmonProperty *sp = cls; | 226 | struct SysmonProperty *sp = cls; |
227 | unsigned long long tmp; | ||
227 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Property output: `%s'\n", line); | 228 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Property output: `%s'\n", line); |
228 | if (NULL == line) | 229 | if (NULL == line) |
229 | { | 230 | { |
@@ -234,7 +235,7 @@ exec_cmd_proc (void *cls, const char *line) | |||
234 | 235 | ||
235 | switch (sp->value_type) { | 236 | switch (sp->value_type) { |
236 | case v_numeric: | 237 | case v_numeric: |
237 | if (1 != sscanf (line, "%lu", &sp->num_val)) | 238 | if (1 != sscanf (line, "%llu", &tmp)) |
238 | { | 239 | { |
239 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Command output was not a numerical value: `%s'\n", line); | 240 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Command output was not a numerical value: `%s'\n", line); |
240 | return; | 241 | return; |
@@ -245,7 +246,9 @@ exec_cmd_proc (void *cls, const char *line) | |||
245 | break; | 246 | break; |
246 | default: | 247 | default: |
247 | break; | 248 | break; |
249 | |||
248 | } | 250 | } |
251 | sp->num_val = tmp; | ||
249 | 252 | ||
250 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Property output: `%s'\n", line); | 253 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Property output: `%s'\n", line); |
251 | put_property (sp); | 254 | put_property (sp); |