[GRASS-SVN] r73282 - grass/branches/releasebranch_7_6/imagery/i.segment

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


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

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

Modified: grass/branches/releasebranch_7_6/imagery/i.segment/open_files.c
===================================================================
--- grass/branches/releasebranch_7_6/imagery/i.segment/open_files.c	2018-09-07 08:01:02 UTC (rev 73281)
+++ grass/branches/releasebranch_7_6/imagery/i.segment/open_files.c	2018-09-07 08:01:36 UTC (rev 73282)
@@ -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