summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 551bbc6)
raw | patch | inline | side by side (parent: 551bbc6)
author | Florian Forster <ff@octo.it> | |
Sun, 15 Aug 2010 10:52:57 +0000 (12:52 +0200) | ||
committer | Florian Forster <octo@leeloo.octo.it> | |
Sun, 15 Aug 2010 10:52:57 +0000 (12:52 +0200) |
src/graph_list.c | patch | blob | history |
diff --git a/src/graph_list.c b/src/graph_list.c
index 60cb82a925f0abc1751840ee32347fa8d1231dad..02c7de8db75f0b2c0fad8042b0cb7abf498a4ae1 100644 (file)
--- a/src/graph_list.c
+++ b/src/graph_list.c
if ((status != 0)
|| ((gl_last_update + UPDATE_INTERVAL) < now))
{
+ /* Clear state */
+ gl_clear_instances ();
+ gl_clear_hosts ();
+ gl_destroy (&gl_dynamic, &gl_dynamic_num);
+
status = fs_scan (/* callback = */ gl_register_file,
/* user data = */ NULL);
gl_last_update = now;