update machinery: fix top objects
authorPhil Sutter <phil@nwl.cc>
Sun, 6 Sep 2009 23:49:44 +0000 (01:49 +0200)
committerPhil Sutter <phil@nwl.cc>
Sun, 6 Sep 2009 23:49:44 +0000 (01:49 +0200)
This is a bit messy, but since the top update stuff could use a rewrite
anyway, this should do.

src/core.c

index 7359f70..b9290a5 100644 (file)
@@ -1028,6 +1028,7 @@ struct text_object *construct_text_object(const char *s, const char *arg, long
         * handler. */
        if (strncmp(s, "top", 3) == EQUAL) {
                add_update_callback(&update_meminfo);
+               add_update_callback(&update_top);
                if (!parse_top_args(s, arg, obj)) {
                        return NULL;
                }