Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 2021 12:16:20 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a1ab8186588b - main - graphics/geeqie: use actual number of cores
Message-ID:  <202111261216.1AQCGKDP029079@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111261216.1AQCGKDP029079>