Skip to content

Commit bd04493

Browse files
committed
fix:缓存计算
1 parent 8370a11 commit bd04493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/netease/im/FileCacheUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void onGetStatsCompleted(PackageStats pStats, boolean succeeded) throws R
7979
result += pStats.externalCacheSize;
8080
// LogUtil.i(TAG, "result" + ":" + FileUtil.formatFileSize(result));
8181
if (observer != null) {
82-
observer.onGetCacheSize(FileUtil.formatFileSize(result));
82+
observer.onGetCacheSize(Long.toString(result / (1024 * 1024)));
8383
}
8484
}
8585
});

0 commit comments

Comments
 (0)