[GRASS-SVN] r73281 - grass/trunk/imagery/i.segment
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 7 01:01:02 PDT 2018
Author: mmetz
Date: 2018-09-07 01:01:02 -0700 (Fri, 07 Sep 2018)
New Revision: 73281
Modified:
grass/trunk/imagery/i.segment/open_files.c
Log:
i.segment: another fix for memory management estimation
Modified: grass/trunk/imagery/i.segment/open_files.c
===================================================================
--- grass/trunk/imagery/i.segment/open_files.c 2018-09-07 07:51:24 UTC (rev 73280)
+++ grass/trunk/imagery/i.segment/open_files.c 2018-09-07 08:01:02 UTC (rev 73281)
@@ -537,6 +537,8 @@
reg_size_count = (double) globals->notnullcells / globals->min_reg_size;
/* recalculate segs_mb */
segs_mb = globals->mb - reg_size_count * reg_size_mb;
+ if (segs_mb < 10)
+ segs_mb = 10;
}
G_verbose_message(_("Regions with at least %d cells are stored in memory"),
More information about the grass-commit
mailing list