[baobab/wip/vala: 48/53] scanners: Correctly compute allocated size
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 48/53] scanners: Correctly compute allocated size
- Date: Thu, 5 Apr 2012 21:37:45 +0000 (UTC)
commit e481a9d782c70de854cf43a1814046e3be4f2924
Author: Stefano Facchini <stefano facchini gmail com>
Date: Tue Apr 3 12:51:02 2012 +0200
scanners: Correctly compute allocated size
src/baobab-sync-scanner.vala | 2 +-
src/baobab-threaded-scanner.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/baobab-sync-scanner.vala b/src/baobab-sync-scanner.vala
index f5b4e8c..2b1a236 100644
--- a/src/baobab-sync-scanner.vala
+++ b/src/baobab-sync-scanner.vala
@@ -43,7 +43,7 @@ namespace Baobab {
var child_results = add_directory (child, child_info, iter);
results.size += child_results.size;
- results.alloc_size += child_results.size;
+ results.alloc_size += child_results.alloc_size;
results.elements += child_results.elements;
results.max_depth = int.max (results.max_depth, child_results.max_depth + 1);
break;
diff --git a/src/baobab-threaded-scanner.vala b/src/baobab-threaded-scanner.vala
index b7dd3dd..8e92ef1 100644
--- a/src/baobab-threaded-scanner.vala
+++ b/src/baobab-threaded-scanner.vala
@@ -95,7 +95,7 @@ namespace Baobab {
if (child_results != null) {
results.size += child_results.size;
- results.alloc_size += child_results.size;
+ results.alloc_size += child_results.alloc_size;
results.elements += child_results.elements;
results.max_depth = int.max (results.max_depth, child_results.max_depth + 1);
results_array.results += (owned) child_results;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]