From 9eec03faa59345b7b16236805cb17d2f0cd82709 Mon Sep 17 00:00:00 2001 From: Miika Pekkarinen Date: Sun, 17 Feb 2008 18:35:27 +0000 Subject: FS#8565 - fix for runtime data causing extra spin ups. Included a debug menu update also. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16330 a1c6a512-1295-4272-9138-f99709370657 --- apps/debug_menu.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'apps/debug_menu.c') diff --git a/apps/debug_menu.c b/apps/debug_menu.c index b3df043609..61b564820e 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1913,7 +1913,9 @@ static int database_callback(int btn, struct gui_synclist *lists) simplelist_addline(SIMPLELIST_ADD_LINE, "Commit delayed: %s", stat->commit_delayed ? "Yes" : "No"); - + simplelist_addline(SIMPLELIST_ADD_LINE, "Queue length: %d", + stat->queue_length); + if (synced) { synced = false; @@ -1937,7 +1939,11 @@ static bool dbg_tagcache_info(void) simplelist_info_init(&info, "Database Info", 8, NULL); info.action_callback = database_callback; info.hide_selection = true; - info.timeout = TIMEOUT_NOBLOCK; + + /* Don't do nonblock here, must give enough processing time + for tagcache thread. */ + /* info.timeout = TIMEOUT_NOBLOCK; */ + info.timeout = 1; tagcache_screensync_enable(true); return simplelist_show_list(&info); } -- cgit v1.2.3