summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/tagcache.c2
-rw-r--r--apps/tagtree.c7
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c
index 436d85812b..8db1569379 100644
--- a/apps/tagcache.c
+++ b/apps/tagcache.c
@@ -170,7 +170,7 @@ static const char * const tag_type_str[] = {
170#endif /* ndef LOGF_ENABLE */ 170#endif /* ndef LOGF_ENABLE */
171 171
172/* Status information of the tagcache. */ 172/* Status information of the tagcache. */
173static struct tagcache_stat tc_stat; 173struct tagcache_stat tc_stat;
174 174
175/* Queue commands. */ 175/* Queue commands. */
176enum tagcache_queue { 176enum tagcache_queue {
diff --git a/apps/tagtree.c b/apps/tagtree.c
index 45d2bb991b..2694a764a0 100644
--- a/apps/tagtree.c
+++ b/apps/tagtree.c
@@ -1429,6 +1429,10 @@ static struct tagentry* get_entries(struct tree_context *tc)
1429 return core_get_data(tc->cache.entries_handle); 1429 return core_get_data(tc->cache.entries_handle);
1430} 1430}
1431 1431
1432#ifdef HAVE_TC_RAMCACHE
1433extern struct tagcache_stat tc_stat;
1434#endif
1435
1432static int retrieve_entries(struct tree_context *c, int offset, bool init) 1436static int retrieve_entries(struct tree_context *c, int offset, bool init)
1433{ 1437{
1434 struct tagcache_search tcs; 1438 struct tagcache_search tcs;
@@ -1447,6 +1451,9 @@ static int retrieve_entries(struct tree_context *c, int offset, bool init)
1447 otherwise show it after the normal 1/2 second delay */ 1451 otherwise show it after the normal 1/2 second delay */
1448 show_search_progress( 1452 show_search_progress(
1449#ifdef HAVE_DISK_STORAGE 1453#ifdef HAVE_DISK_STORAGE
1454#ifdef HAVE_TC_RAMCACHE
1455 tc_stat.ramcache ? true :
1456#endif
1450 storage_disk_is_active() 1457 storage_disk_is_active()
1451#else 1458#else
1452 true 1459 true