diff options
author | Koushik Dutta <koushd@gmail.com> | 2012-07-15 19:41:24 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2012-07-15 19:41:24 -0700 |
commit | 4b52b0804ab7058737ea6bc8290d7199c847e1a0 (patch) | |
tree | 4cae7e693fd85846b034eb166d79d0c34c1757f1 /nandroid.c | |
parent | 39a303d932dccbe052ce7cc4a2ade8e613d3044a (diff) | |
download | bootable_recovery-4b52b0804ab7058737ea6bc8290d7199c847e1a0.zip bootable_recovery-4b52b0804ab7058737ea6bc8290d7199c847e1a0.tar.gz bootable_recovery-4b52b0804ab7058737ea6bc8290d7199c847e1a0.tar.bz2 |
Add a background texture. Animate during nandroids. Fix dir count.
Change-Id: I9d03f72453d20ba8647b6f81821bf71004621011
Diffstat (limited to 'nandroid.c')
-rw-r--r-- | nandroid.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -75,6 +75,7 @@ static void nandroid_callback(const char* filename) tmp[strlen(tmp) - 1] = NULL; tmp[ui_get_text_cols() - 1] = '\0'; nandroid_files_count++; + ui_increment_frame(); ui_nice_print("%s\n", tmp); if (!ui_was_niced() && nandroid_files_total != 0) ui_set_progress((float)nandroid_files_count / (float)nandroid_files_total); @@ -85,7 +86,7 @@ static void nandroid_callback(const char* filename) static void compute_directory_stats(const char* directory) { char tmp[PATH_MAX]; - sprintf(tmp, "find %s | wc -l > /tmp/dircount", directory); + sprintf(tmp, "find %s | %s wc -l > /tmp/dircount", directory, strcmp(directory, "/data") == 0 && is_data_media() ? "grep -v /data/media |" : ""); __system(tmp); char count_text[100]; FILE* f = fopen("/tmp/dircount", "r"); |