[PATCH 2/3] abrt-cli status: don't include reported problems into count
Denys Vlasenko
dvlasenk at redhat.com
Thu May 23 09:03:11 UTC 2013
Signed-off-by: Denys Vlasenko <dvlasenk at redhat.com>
---
src/cli/status.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/cli/status.c b/src/cli/status.c
index 0dbcd1d..7165498 100644
--- a/src/cli/status.c
+++ b/src/cli/status.c
@@ -30,6 +30,9 @@ static int count_dir_if_newer_than(struct dump_dir *dd, void *arg)
{
struct time_range *me = arg;
+ if (dd_exist(dd, FILENAME_REPORTED_TO))
+ return 0;
+
char *time_str = dd_load_text(dd, FILENAME_LAST_OCCURRENCE);
long val = atol(time_str);
free(time_str);
--
1.8.1.4
More information about the Crash-catcher
mailing list