git-svn-id: https://svn.osgeo.org/grass/grass/trunk@73497 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -424,6 +424,12 @@ int main(int argc, char **argv)
G_free(dbuf);
}
+ if (!gflag->answer) {
+ /* always report total number of cells */
+ fprintf(out, "cells=%jd\n",
+ (grass_int64)cellhd.rows * cellhd.cols);
+ }
+
if (rstats.count > 0) {
double mean, sd;