From 2dd90a5c57ec49a3ed2d6962c190d5c7c074b43a Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Thu, 1 Nov 2018 16:08:19 +0000
Subject: [PATCH] Fixes to timers.

---
 src/runner.c              | 2 +-
 src/runner_doiact_stars.h | 2 +-
 src/timers.h              | 4 +++-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/runner.c b/src/runner.c
index cf5492dad4..48de08d4bd 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -337,7 +337,7 @@ void runner_do_stars_ghost(struct runner *r, struct cell *c, int timer) {
     free(sid);
   }
 
-  if (timer) TIMER_TOC(timer_do_stars_ghost);
+  if (timer) TIMER_TOC(timer_dostars_ghost);
 }
 
 /**
diff --git a/src/runner_doiact_stars.h b/src/runner_doiact_stars.h
index c24c956d83..7d2959da71 100644
--- a/src/runner_doiact_stars.h
+++ b/src/runner_doiact_stars.h
@@ -944,7 +944,7 @@ void runner_dosub_subset_stars_density(struct runner *r, struct cell *ci,
 
   } /* otherwise, pair interaction. */
 
-  if (gettimer) TIMER_TOC(timer_dosub_subset_stars_density);
+  if (gettimer) TIMER_TOC(timer_dosub_subset_pair_stars_density);
 }
 
 /**
diff --git a/src/timers.h b/src/timers.h
index c43f0154d2..52dc076ceb 100644
--- a/src/timers.h
+++ b/src/timers.h
@@ -93,8 +93,10 @@ enum {
   timer_dostars_ghost,
   timer_doself_subset_stars_density,
   timer_dopair_subset_stars_density,
-  timer_dosubpair_stars_density,
+  timer_dosub_pair_stars_density,
   timer_dosub_self_stars_density,
+  timer_dosub_subset_pair_stars_density,
+  timer_dosub_subset_self_stars_density,
   timer_logger,
   timer_count,
 };
-- 
GitLab