summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a0b199)
raw | patch | inline | side by side (parent: 2a0b199)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 15 May 2015 20:40:00 +0000 (22:40 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 15 May 2015 20:40:00 +0000 (22:40 +0200) |
src/frontend/store.c | patch | blob | history |
diff --git a/src/frontend/store.c b/src/frontend/store.c
index ff563165cb1bf7ebda020c1ac2f630e13990e571..6cad8cd312637036af82ef0a763eba7fbfd46c20 100644 (file)
--- a/src/frontend/store.c
+++ b/src/frontend/store.c
if ((! conn) || (! svc) || (! svc->hostname) || (! svc->name))
return -1;
- snprintf(name, sizeof(name), svc->hostname, svc->name);
+ snprintf(name, sizeof(name), "%s.%s", svc->hostname, svc->name);
return store_reply(conn, SDB_SERVICE, name,
sdb_store_service(svc->hostname, svc->name, svc->last_update));
} /* sdb_fe_store_service */
store.type = metric->store_type;
store.id = metric->store_id;
- snprintf(name, sizeof(name), metric->hostname, metric->name);
+ snprintf(name, sizeof(name), "%s.%s", metric->hostname, metric->name);
return store_reply(conn, SDB_METRIC, name,
sdb_store_metric(metric->hostname, metric->name,
&store, metric->last_update));