[gnome-photos] gegl: Rename a variable for consistency
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] gegl: Rename a variable for consistency
- Date: Mon, 24 Sep 2018 12:37:14 +0000 (UTC)
commit 25c016a1d2490cc0314ada6ecfa8d12f99d3d447
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Sep 21 17:00:27 2018 +0200
gegl: Rename a variable for consistency
src/photos-gegl.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/photos-gegl.c b/src/photos-gegl.c
index 8b3909a8..b3b02cff 100644
--- a/src/photos-gegl.c
+++ b/src/photos-gegl.c
@@ -603,12 +603,12 @@ photos_gegl_init (void)
{
GeglConfig *config;
gint threads;
- guint num_processors;
+ guint n_processors;
gegl_init (NULL, NULL);
- num_processors = g_get_num_processors ();
- g_return_if_fail (num_processors > 0);
+ n_processors = g_get_num_processors ();
+ g_return_if_fail (n_processors > 0);
/* The number of threads should match the number of physical CPU
* cores, not the number of virtual hyper-threading cores. In the
@@ -616,7 +616,7 @@ photos_gegl_init (void)
* assume that a number higher than one is indicative of
* hyper-threading, and hence divide by two.
*/
- threads = (gint) (num_processors > 1 ? num_processors / 2 : num_processors);
+ threads = (gint) (n_processors > 1 ? n_processors / 2 : n_processors);
config = gegl_config ();
g_object_set (config, "application-license", "GPL3", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]