[GRASS-SVN] r73283 - grass/branches/releasebranch_7_4/imagery/i.segment

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Sep 7 01:01:47 PDT 2018


Author: mmetz
Date: 2018-09-07 01:01:47 -0700 (Fri, 07 Sep 2018)
New Revision: 73283

Modified:
   grass/branches/releasebranch_7_4/imagery/i.segment/open_files.c
Log:
i.segment: another fix for memory management estimation (backport trunk r73281)

Modified: grass/branches/releasebranch_7_4/imagery/i.segment/open_files.c
===================================================================
--- grass/branches/releasebranch_7_4/imagery/i.segment/open_files.c	2018-09-07 08:01:36 UTC (rev 73282)
+++ grass/branches/releasebranch_7_4/imagery/i.segment/open_files.c	2018-09-07 08:01:47 UTC (rev 73283)
@@ -551,6 +551,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