From a059fe10f36de43722da7ad9917025d65914bfcc Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Mon, 8 Sep 2008 21:27:39 +0200 Subject: Actually fix directory size calculation --- common/treepath_vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/treepath_vfs.c b/common/treepath_vfs.c index 9a70f5c..cdea20c 100644 --- a/common/treepath_vfs.c +++ b/common/treepath_vfs.c @@ -76,7 +76,7 @@ u_int64_t internal_get_dir_size(struct VfsFilelistData *data, struct PathTree *t if (data->break_get_dir_size) break; if (n->data) { log("internal_get_dir_size: found item '%s', size = %llu \n", n->node, n->data->iSize); - Size += (n->items && n->items->len > 0) ? internal_get_dir_size(data, n) : n->data->iSize; + Size += (n->data->ItemType == vDirectory) ? internal_get_dir_size(data, n) : n->data->iSize; } idx++; } -- cgit v1.2.3