diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tagcache.c | 2 | ||||
-rw-r--r-- | apps/tagtree.c | 7 |
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. */ |
173 | static struct tagcache_stat tc_stat; | 173 | struct tagcache_stat tc_stat; |
174 | 174 | ||
175 | /* Queue commands. */ | 175 | /* Queue commands. */ |
176 | enum tagcache_queue { | 176 | enum 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 | ||
1433 | extern struct tagcache_stat tc_stat; | ||
1434 | #endif | ||
1435 | |||
1432 | static int retrieve_entries(struct tree_context *c, int offset, bool init) | 1436 | static 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 |