The new name is more descriptive with respect what the function
actually does.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
/*
* 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);
* 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);
#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