From a6be746163f92cfd40fb9943b8d37eb1c591cb90 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 9 Dec 2015 15:24:07 -0800 Subject: [PATCH] Unrelated code formatting correction --- geojson.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/geojson.c b/geojson.c index 041492c..c933657 100644 --- a/geojson.c +++ b/geojson.c @@ -65,21 +65,21 @@ int CPUS; int TEMP_FILES; void init_cpus() { - CPUS = sysconf(_SC_NPROCESSORS_ONLN); - if (CPUS < 1) { - CPUS = 1; - } + CPUS = sysconf(_SC_NPROCESSORS_ONLN); + if (CPUS < 1) { + CPUS = 1; + } - TEMP_FILES = 64; - struct rlimit rl; - if (getrlimit(RLIMIT_NOFILE, &rl) != 0) { - perror("getrlimit"); - } else { - TEMP_FILES = rl.rlim_cur / 3; - if (TEMP_FILES > CPUS * 4) { - TEMP_FILES = CPUS * 4; - } - } + TEMP_FILES = 64; + struct rlimit rl; + if (getrlimit(RLIMIT_NOFILE, &rl) != 0) { + perror("getrlimit"); + } else { + TEMP_FILES = rl.rlim_cur / 3; + if (TEMP_FILES > CPUS * 4) { + TEMP_FILES = CPUS * 4; + } + } } size_t fwrite_check(const void *ptr, size_t size, size_t nitems, FILE *stream, const char *fname) {