diff options
-rw-r--r-- | src/report.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h index 94d39215..75f3b1ff 100644 --- a/src/report.h +++ b/src/report.h @@ -362,7 +362,7 @@ public: OPTION_(report_t, average, DO() { // -A parent->HANDLER(display_total_) - .set_expr(string("--average"), "total_expr/count"); + .set_expr(string("--average"), "count>0?(total_expr/count):0"); }); OPTION__(report_t, balance_format_, CTOR(report_t, balance_format_) { |