X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fcore%2Fstore.c;h=bf12a9378eb228e811a87ea268eb8fa403991672;hp=eb58ad83b1ba2cd36b5fba803e42313758ea3d38;hb=bbd1b997cf153d54878efebc182bd88f1c64d45c;hpb=fcc75b2e7b54733d006bf460a67393842aa71cf0 diff --git a/src/core/store.c b/src/core/store.c index eb58ad8..bf12a93 100644 --- a/src/core/store.c +++ b/src/core/store.c @@ -946,6 +946,11 @@ sdb_store_get_field(sdb_store_obj_t *obj, int field, sdb_data_t *res) if (! res) return 0; return sdb_data_copy(res, &ATTR(obj)->value); + case SDB_FIELD_TIMESERIES: + if (obj->type != SDB_METRIC) + return -1; + tmp.type = SDB_TYPE_BOOLEAN; + tmp.data.boolean = METRIC(obj)->store.type != NULL; default: return -1; }