]> git.itanic.dy.fi Git - rrdd/commitdiff
scheduler: Rename check_update_need() to get_outdated_db()
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 14 Apr 2012 17:32:34 +0000 (20:32 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Sat, 14 Apr 2012 17:32:34 +0000 (20:32 +0300)
The new name is more descriptive with respect what the function
actually does.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
main.c
scheduler.c
scheduler.h

diff --git a/main.c b/main.c
index e3bd6c98842e348cdc798a3466f78bd843e98ad7..fdea8711a31b10fa2171f2575563f44c21857c40 100644 (file)
--- a/main.c
+++ b/main.c
@@ -22,7 +22,7 @@ int main(int argc, char *argv[])
                /*
                 * Update all databases parallel in one shot
                 */
-               while ((db = check_update_need((struct rrd_database **)
+               while ((db = get_outdated_db((struct rrd_database **)
                                               &all_rrds)))
                        rrdtool_update_data(db);
 
index 1c32b52dd4232e43859caa4a49cb0381b1bb01ef..829e1f4fce2231069fac6e8b0d7b89331b0238e8 100644 (file)
@@ -5,8 +5,7 @@
  * Walk through the database list and return the first database which
  * last update is too far in past
  */
-
-struct rrd_database *check_update_need(struct rrd_database **dblist)
+struct rrd_database *get_outdated_db(struct rrd_database **dblist)
 {
        int i;
        time_t now = time(0);
index 50187f0444d21e64f4adc99b4490de2e01aed0ef..6c1bf541e135f52b8f70835b0b16e722b82ccf01 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "rrdtool.h"
 
-struct rrd_database *check_update_need(struct rrd_database **dblist);
+struct rrd_database *get_outdated_db(struct rrd_database **dblist);
 int get_next_update(struct rrd_database **dblist);
 
 #endif