[prev in list] [next in list] [prev in thread] [next in thread]
List: rrd-developers
Subject: [rrd-developers] [PATCH] [BUG] flush_file: when deciding whether to
From: kevin brintnall <kbrint () rufus ! net>
Date: 2008-09-26 20:20:18
Message-ID: 1222460418-86795-1-git-send-email-kbrint () rufus ! net
[Download RAW message or body]
Even though the old way works (due to NULL == 0), it's NOT right.
Sorry for the noise. I should have caught this earlier.
---
src/rrd_daemon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index 36d090c..f111637 100644
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
@@ -745,7 +745,7 @@ static int flush_file (const char *filename) /* {{{ */
return (ENOENT);
}
- if (ci->values > 0)
+ if (ci->values_num > 0)
{
/* Enqueue at head */
enqueue_cache_item (ci, HEAD);
--
1.6.0.2
_______________________________________________
rrd-developers mailing list
rrd-developers@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic