From 317e9efa2d068f6eaa0bd92c91fabb069a90f277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 25 Oct 2012 15:23:35 +0200 Subject: [PATCH] harakiri count is now accurate so we don't need to divide here --- plugins/carbon/carbon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/carbon/carbon.c b/plugins/carbon/carbon.c index 8d3378e9..f0a3f412 100644 --- a/plugins/carbon/carbon.c +++ b/plugins/carbon/carbon.c @@ -185,7 +185,7 @@ void carbon_push_stats(int retry_cycle) { total_rss += uwsgi.workers[i].rss_size; total_vsz += uwsgi.workers[i].vsz_size; - total_harakiri += uwsgi.workers[i].harakiri_count/2; + total_harakiri += uwsgi.workers[i].harakiri_count; } //skip per worker metrics when disabled @@ -209,7 +209,7 @@ void carbon_push_stats(int retry_cycle) { wok = carbon_write(&fd, "uwsgi.%s.%s.worker%d.busyness %llu %llu\n", uwsgi.hostname, u_carbon.id, i, (unsigned long long) worker_busyness, (unsigned long long) uwsgi.current_time); if (!wok) goto clear; - wok = carbon_write(&fd, "uwsgi.%s.%s.worker%d.harakiri %llu %llu\n", uwsgi.hostname, u_carbon.id, i, (unsigned long long) uwsgi.workers[i].harakiri_count/2, (unsigned long long) uwsgi.current_time); + wok = carbon_write(&fd, "uwsgi.%s.%s.worker%d.harakiri %llu %llu\n", uwsgi.hostname, u_carbon.id, i, (unsigned long long) uwsgi.workers[i].harakiri_count, (unsigned long long) uwsgi.current_time); if (!wok) goto clear; }