X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Fcore%2Fplugin.c;h=92fa8866981f6e5b4623100498c04d7e5567f0d8;hp=76b0b1e45b656a6416bb8aa526581cd311ac5921;hb=1bde17786b9a0b342daae5faa46a54b3eeab6558;hpb=e5cdc52af5132aba291c623cada6ef585eb72089 diff --git a/src/core/plugin.c b/src/core/plugin.c index 76b0b1e..92fa886 100644 --- a/src/core/plugin.c +++ b/src/core/plugin.c @@ -1733,8 +1733,11 @@ sdb_plugin_store_metric(const char *hostname, const char *name, metric.hostname = cname; metric.name = name; if (store) { + if (store->last_update < last_update) + store->last_update = last_update; metric.store.type = store->type; metric.store.id = store->id; + metric.store.last_update = store->last_update; } metric.last_update = last_update ? last_update : sdb_gettime(); if (get_interval(SDB_METRIC, cname, -1, NULL, name,