From 60be6b11510c2ababb7c3e20573afa13ef04c448 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 4 May 2007 14:47:27 +0000 Subject: [PATCH] [SIGAR-56] Fix dir_usage.total --- src/sigar_fileinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sigar_fileinfo.c b/src/sigar_fileinfo.c index b9934863..ab96310d 100644 --- a/src/sigar_fileinfo.c +++ b/src/sigar_fileinfo.c @@ -467,7 +467,7 @@ static int dir_stat_get(sigar_t *sigar, return error; } - dirstats->total += + dirstats->total = dirstats->files + dirstats->subdirs + dirstats->symlinks + @@ -689,7 +689,7 @@ static int dir_stat_get(sigar_t *sigar, } } - dirstats->total += + dirstats->total = dirstats->files + dirstats->subdirs + dirstats->symlinks +