[baobab/wip/vala: 57/65] scanners: Correctly compute allocated size
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 57/65] scanners: Correctly compute allocated size
- Date: Thu, 5 Apr 2012 12:19:45 +0000 (UTC)
commit 29ca12f11c8cdb64165dea276eca8739bf8d418e
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 d04385e..775bbfe 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 55a9c57..771f82b 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]