summaryrefslogtreecommitdiff
path: root/apps/plugins/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/stats.c')
-rw-r--r--apps/plugins/stats.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/stats.c b/apps/plugins/stats.c
index eaa1055a73..3420579881 100644
--- a/apps/plugins/stats.c
+++ b/apps/plugins/stats.c
@@ -24,7 +24,7 @@ PLUGIN_HEADER
24 24
25static int files, dirs, musicfiles, largestdir; 25static int files, dirs, musicfiles, largestdir;
26static int lasttick; 26static int lasttick;
27static bool abort; 27static bool cancel;
28 28
29#if CONFIG_KEYPAD == PLAYER_PAD 29#if CONFIG_KEYPAD == PLAYER_PAD
30#define STATS_STOP BUTTON_STOP 30#define STATS_STOP BUTTON_STOP
@@ -173,7 +173,7 @@ void traversedir(char* location, char* name)
173 if (dir) { 173 if (dir) {
174 entry = rb->readdir(dir); 174 entry = rb->readdir(dir);
175 while (entry) { 175 while (entry) {
176 if (abort) 176 if (cancel)
177 break; 177 break;
178 /* Skip .. and . */ 178 /* Skip .. and . */
179 if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, "..")) 179 if (rb->strcmp(entry->d_name, ".") && rb->strcmp(entry->d_name, ".."))
@@ -206,7 +206,7 @@ void traversedir(char* location, char* name)
206 || button == STATS_STOP_REMOTE 206 || button == STATS_STOP_REMOTE
207#endif 207#endif
208 ) { 208 ) {
209 abort = true; 209 cancel = true;
210 break; 210 break;
211 } 211 }
212 } 212 }
@@ -229,14 +229,14 @@ enum plugin_status plugin_start(const void* parameter)
229 dirs = 0; 229 dirs = 0;
230 musicfiles = 0; 230 musicfiles = 0;
231 largestdir = 0; 231 largestdir = 0;
232 abort = false; 232 cancel = false;
233 233
234 rb->splash(HZ, "Counting..."); 234 rb->splash(HZ, "Counting...");
235 update_screen(); 235 update_screen();
236 lasttick = *rb->current_tick; 236 lasttick = *rb->current_tick;
237 237
238 traversedir("", ""); 238 traversedir("", "");
239 if (abort) { 239 if (cancel) {
240 rb->splash(HZ, "Aborted"); 240 rb->splash(HZ, "Aborted");
241 return PLUGIN_OK; 241 return PLUGIN_OK;
242 } 242 }