git: a1ab8186588b - main - graphics/geeqie: use actual number of cores

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Fri, 26 Nov 2021 12:16:20 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a1ab8186588b303ddcdf72a7a0b53b79807839a6

commit a1ab8186588b303ddcdf72a7a0b53b79807839a6
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-25 12:02:28 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-26 12:15:04 +0000

    graphics/geeqie: use actual number of cores
    
    Suggested by:   cmt@burggraben.net
---
 graphics/geeqie/Makefile               | 2 +-
 graphics/geeqie/files/patch-src_misc.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/graphics/geeqie/Makefile b/graphics/geeqie/Makefile
index 9ccc20bf80a1..9aa5607e9431 100644
--- a/graphics/geeqie/Makefile
+++ b/graphics/geeqie/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	geeqie
 PORTVERSION=	1.6
-PORTREVISION=	13
+PORTREVISION=	14
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.geeqie.org/
 
diff --git a/graphics/geeqie/files/patch-src_misc.c b/graphics/geeqie/files/patch-src_misc.c
index 568a23247350..8b2d9b58ee5d 100644
--- a/graphics/geeqie/files/patch-src_misc.c
+++ b/graphics/geeqie/files/patch-src_misc.c
@@ -4,7 +4,7 @@
  
  gint get_cpu_cores(void)
  {
-+	return 1;
++	return MAX(1, sysconf(_SC_NPROCESSORS_ONLN));
  	FILE *cpuinfo = fopen("/proc/cpuinfo", "rb");
  	char *arg = 0;
  	size_t size = 0;