now 1028 daemons/based/based_callbacks.c time_t now = time(NULL); now 1064 daemons/based/based_callbacks.c if ((finished - now) > 3) { now 1065 daemons/based/based_callbacks.c crm_trace("%s operation took %lds to complete", op, (long)(finished - now)); now 685 daemons/controld/controld_control.c crm_time_t *now = crm_time_new(NULL); now 719 daemons/controld/controld_control.c config_hash, CIB_OPTIONS_FIRST, FALSE, now, NULL); now 785 daemons/controld/controld_control.c crm_time_free(now); now 459 daemons/controld/controld_execd_state.c crm_time_t *now = crm_time_new(NULL); now 465 daemons/controld/controld_execd_state.c config_hash, CIB_OPTIONS_FIRST, FALSE, now, NULL); now 471 daemons/controld/controld_execd_state.c crm_time_free(now); now 500 daemons/controld/controld_execd_state.c time_t now = time(NULL); now 506 daemons/controld/controld_execd_state.c now_s = crm_itoa(now); now 215 daemons/controld/controld_fencing.c time_t now = time(NULL); now 216 daemons/controld/controld_fencing.c char *now_s = crm_itoa(now); now 760 daemons/controld/controld_fencing.c char *now = crm_ttoa(time(NULL)); now 762 daemons/controld/controld_fencing.c update_attrd(target, CRM_ATTR_UNFENCED, now, NULL, FALSE); now 763 daemons/controld/controld_fencing.c free(now); now 1189 daemons/controld/controld_messages.c time_t now = time(NULL); now 1200 daemons/controld/controld_messages.c now_s = crm_itoa(now); now 164 daemons/controld/controld_te_events.c char *now = crm_ttoa(time(NULL)); now 174 daemons/controld/controld_te_events.c rsc_id, on_uname, task, rc, value, now); now 187 daemons/controld/controld_te_events.c update_attrd(on_uname, attr_name, now, NULL, is_remote_node); now 190 daemons/controld/controld_te_events.c free(now); now 132 daemons/controld/controld_throttle.c time_t now = time(NULL); now 180 daemons/controld/controld_throttle.c && last_call < now now 184 daemons/controld/controld_throttle.c time_t elapsed = now - last_call; now 194 daemons/controld/controld_throttle.c crm_debug("Init %lu + %lu ticks at %ld (%lu tps)", utime, stime, (long)now, ticks_per_s); now 197 daemons/controld/controld_throttle.c last_call = now; now 471 daemons/execd/cts-exec-helper.c data_set->now = crm_time_new(NULL); now 151 daemons/execd/execd_commands.c time_diff_ms(struct timespec *now, struct timespec *old) now 158 daemons/execd/execd_commands.c if (now == NULL) { now 160 daemons/execd/execd_commands.c now = &local_now; now 162 daemons/execd/execd_commands.c diff_ms = (now->tv_sec - old->tv_sec) * 1000 now 163 daemons/execd/execd_commands.c + (now->tv_nsec - old->tv_nsec) / 1000000; now 1667 daemons/fenced/fenced_commands.c time_t now = time(NULL); now 1669 daemons/fenced/fenced_commands.c if (dev->targets == NULL || dev->targets_age + 60 < now) { now 881 daemons/fenced/fenced_remote.c time_t now = time(NULL); now 914 daemons/fenced/fenced_remote.c } else if(other->total_timeout > 0 && now > (other->total_timeout + other->created)) { now 918 daemons/fenced/fenced_remote.c now, other->created, other->total_timeout); now 2117 daemons/fenced/fenced_remote.c time_t now = time(NULL); now 2139 daemons/fenced/fenced_remote.c } else if ((rop->completed + tolerance) < now) { now 699 daemons/fenced/pacemaker-fenced.c fenced_data_set->now = crm_time_new(NULL); now 415 daemons/pacemakerd/pacemakerd.c time_t now = time(NULL); now 430 daemons/pacemakerd/pacemakerd.c next_log = now + 30; now 438 daemons/pacemakerd/pacemakerd.c } else if (now >= next_log) { now 439 daemons/pacemakerd/pacemakerd.c next_log = now + 30; now 175 include/crm/pengine/common.h crm_time_t *now; now 129 include/crm/pengine/pe_types.h crm_time_t *now; now 38 include/crm/pengine/rules.h crm_time_t *now, crm_time_t *next_change); now 41 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, now 45 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, now 57 include/crm/pengine/rules.h crm_time_t *now, crm_time_t *next_change); now 82 include/crm/pengine/rules.h gboolean test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now); now 86 include/crm/pengine/rules.h crm_time_t *now); now 90 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, now 95 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, now 100 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now); now 104 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t *now, now 110 include/crm/pengine/rules.h crm_time_t *now, pe_match_data_t *match_data); now 116 include/crm/pengine/rules.h gboolean overwrite, crm_time_t *now); now 32 include/crm/pengine/rules_internal.h crm_time_t *now, now 34 include/crm/pengine/rules_internal.h gboolean pe_test_date_expression(xmlNode *time_expr, crm_time_t *now, now 36 include/crm/pengine/rules_internal.h int pe_cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec); now 37 include/crm/pengine/rules_internal.h gboolean pe_test_attr_expression(xmlNode *expr, GHashTable *hash, crm_time_t *now, now 39 include/crm/pengine/rules_internal.h gboolean pe_test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now); now 103 include/pcmki/pcmki_scheduler.h crm_time_t *now); now 664 lib/cib/cib_utils.c crm_time_t *now = NULL; now 670 lib/cib/cib_utils.c now = crm_time_new(NULL); now 677 lib/cib/cib_utils.c options, CIB_OPTIONS_FIRST, TRUE, now, NULL); now 682 lib/cib/cib_utils.c crm_time_free(now); now 511 lib/cluster/cpg.c time_t now = time(NULL); now 515 lib/cluster/cpg.c peer->when_lost = now; now 517 lib/cluster/cpg.c } else if (now > (peer->when_lost + 60)) { now 664 lib/common/iso8601.c time_t now = time(NULL); now 665 lib/common/iso8601.c struct tm *now_tm = localtime(&now); now 416 lib/common/logging.c time_t now = time(NULL); now 427 lib/common/logging.c if (nsig == 0 && now == last) { now 444 lib/common/logging.c last = now; now 1906 lib/common/xml.c if ((now + 1) < next) { now 1908 lib/common/xml.c crm_err("xmlNodeDump() -> %dbytes took %ds", *max, next - now); now 133 lib/lrmd/lrmd_alerts.c pcmk__time_hr_t *now = NULL; now 161 lib/lrmd/lrmd_alerts.c if (now == NULL) { now 163 lib/lrmd/lrmd_alerts.c now = pcmk__time_timeval_hr_convert(NULL, &tv_now); now 177 lib/lrmd/lrmd_alerts.c if (now) { now 178 lib/lrmd/lrmd_alerts.c char *timestamp = pcmk__time_format_hr(entry->tstamp_format, now); now 192 lib/lrmd/lrmd_alerts.c snprintf(timestamp_usec, sizeof(timestamp_usec), "%06d", now->useconds); now 211 lib/lrmd/lrmd_alerts.c if (now) { now 212 lib/lrmd/lrmd_alerts.c free(now); now 58 lib/pacemaker/pcmk_sched_constraints.c result = pe_evaluate_rules(lifetime, NULL, data_set->now, next_change); now 1154 lib/pacemaker/pcmk_sched_constraints.c data_set->now, next_change, match_data); now 80 lib/pacemaker/pcmk_sched_messages.c crm_time_t *now) now 91 lib/pacemaker/pcmk_sched_messages.c data_set->now = now; now 97 lib/pacemaker/pcmk_sched_messages.c if (data_set->now == NULL) { now 98 lib/pacemaker/pcmk_sched_messages.c data_set->now = crm_time_new(NULL); now 91 lib/pacemaker/pcmk_sched_transition.c char *now = crm_ttoa(time(NULL)); now 98 lib/pacemaker/pcmk_sched_transition.c inject_transient_attr(cib_node, name, now); now 100 lib/pacemaker/pcmk_sched_transition.c free(now); now 112 lib/pengine/complex.c .now = data_set->now, now 153 lib/pengine/complex.c .now = data_set->now, now 185 lib/pengine/complex.c .now = data_set->now, now 412 lib/pengine/complex.c .now = data_set->now, now 293 lib/pengine/failcounts.c time_t now = get_effective_time(data_set); now 295 lib/pengine/failcounts.c if (now > (last + rsc->failure_timeout)) { now 39 lib/pengine/rules.c pe_evaluate_rules(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now, now 45 lib/pengine/rules.c .now = now, now 56 lib/pengine/rules.c crm_time_t *now, crm_time_t *next_change, now 62 lib/pengine/rules.c .now = now, now 89 lib/pengine/rules.c crm_time_t *now, crm_time_t *next_change, now 95 lib/pengine/rules.c .now = now, now 144 lib/pengine/rules.c pe_test_role_expression(xmlNode *expr, enum rsc_role_e role, crm_time_t *now) now 149 lib/pengine/rules.c .now = now, now 159 lib/pengine/rules.c pe_test_attr_expression(xmlNode *expr, GHashTable *hash, crm_time_t *now, now 165 lib/pengine/rules.c .now = now, now 192 lib/pengine/rules.c phase_of_the_moon(crm_time_t * now) now 197 lib/pengine/rules.c crm_time_get_ordinal(now, &y, &diy); now 274 lib/pengine/rules.c pe_cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec) now 278 lib/pengine/rules.c CRM_CHECK(now != NULL, return pcmk_rc_op_unsatisfied); now 280 lib/pengine/rules.c crm_time_get_gregorian(now, &y, &m, &d); now 285 lib/pengine/rules.c crm_time_get_timeofday(now, &h, &m, &s); now 290 lib/pengine/rules.c crm_time_get_ordinal(now, &y, &d); now 293 lib/pengine/rules.c crm_time_get_isoweek(now, &y, &w, &d); now 298 lib/pengine/rules.c CHECK_ONE(cron_spec, "moon", phase_of_the_moon(now)); now 345 lib/pengine/rules.c pe_test_date_expression(xmlNode *expr, crm_time_t *now, crm_time_t *next_change) now 350 lib/pengine/rules.c .now = now, now 389 lib/pengine/rules.c pe_eval_date_expression(xmlNode *expr, crm_time_t *now, crm_time_t *next_change) now 394 lib/pengine/rules.c .now = now, now 716 lib/pengine/rules.c crm_time_t *now, crm_time_t *next_change) now 721 lib/pengine/rules.c .now = now, now 911 lib/pengine/rules.c accept = pe_test_date_expression(expr, rule_data->now, next_change); now 1209 lib/pengine/rules.c } else if ((start != NULL) && (crm_time_compare(rule_data->now, start) < 0)) { now 1212 lib/pengine/rules.c } else if ((end != NULL) && (crm_time_compare(rule_data->now, end) > 0)) { now 1224 lib/pengine/rules.c rc = pe_cron_range_satisfied(rule_data->now, date_spec); now 1230 lib/pengine/rules.c } else if (crm_time_compare(rule_data->now, start) > 0) { now 1243 lib/pengine/rules.c } else if (crm_time_compare(rule_data->now, end) < 0) { now 1366 lib/pengine/rules.c gboolean test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now); now 1368 lib/pengine/rules.c crm_time_t *now); now 1370 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, now 1373 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, now 1376 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now); now 1378 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, now 1381 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, now 1386 lib/pengine/rules.c gboolean overwrite, crm_time_t *now); now 1389 lib/pengine/rules.c test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now) now 1391 lib/pengine/rules.c return pe_evaluate_rules(ruleset, node_hash, now, NULL); now 1395 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) now 1397 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); now 1401 lib/pengine/rules.c pe_test_rule_re(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) now 1408 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); now 1413 lib/pengine/rules.c crm_time_t *now, pe_match_data_t *match_data) now 1415 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); now 1419 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) now 1421 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); now 1425 lib/pengine/rules.c pe_test_expression_re(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data) now 1432 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); now 1437 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, now 1440 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); now 1447 lib/pengine/rules.c crm_time_t *now) now 1452 lib/pengine/rules.c .now = now, now 23 lib/pengine/rules_alerts.c crm_time_t *now = crm_time_new(NULL); now 27 lib/pengine/rules_alerts.c NULL, FALSE, now, NULL); now 28 lib/pengine/rules_alerts.c crm_time_free(now); now 89 lib/pengine/status.c if (data_set->now == NULL) { now 90 lib/pengine/status.c data_set->now = crm_time_new(NULL); now 310 lib/pengine/status.c crm_time_free(data_set->now); now 206 lib/pengine/unpack.c .now = data_set->now, now 550 lib/pengine/unpack.c .now = data_set->now, now 3328 lib/pengine/unpack.c time_t now = get_effective_time(data_set); now 3332 lib/pengine/unpack.c if ((now >= (last_run + rsc->failure_timeout)) now 3347 lib/pengine/unpack.c (long long) now, unexpired_fail_count, rsc->failure_timeout, now 3350 lib/pengine/unpack.c if (unexpired_fail_count && (now < last_failure)) { now 3845 lib/pengine/unpack.c .now = data_set->now, now 582 lib/pengine/utils.c .now = data_set->now, now 841 lib/pengine/utils.c crm_time_t *now, long long *start_delay) now 848 lib/pengine/utils.c if ((value == NULL) || (interval_ms == 0) || (now == NULL)) { now 862 lib/pengine/utils.c result = crm_time_get_seconds(now) - crm_time_get_seconds(origin); now 902 lib/pengine/utils.c .now = data_set->now, now 941 lib/pengine/utils.c guint interval_ms, crm_time_t *now) now 962 lib/pengine/utils.c if (unpack_interval_origin(value, xml_obj, interval_ms, now, now 1015 lib/pengine/utils.c .now = data_set->now, now 1285 lib/pengine/utils.c if (unpack_interval_origin(value, xml_obj, interval_ms, data_set->now, now 1294 lib/pengine/utils.c data_set->now); now 1833 lib/pengine/utils.c if (data_set->now == NULL) { now 1835 lib/pengine/utils.c data_set->now = crm_time_new(NULL); now 1837 lib/pengine/utils.c return crm_time_get_seconds_since_epoch(data_set->now); now 2073 tools/crm_mon.c time_t now = time(NULL); now 2088 tools/crm_mon.c if ((now - last_refresh) > (options.reconnect_msec / 1000)) { now 18 tools/crm_resource_ban.c crm_time_t *now = NULL; now 35 tools/crm_resource_ban.c now = crm_time_new(NULL); now 36 tools/crm_resource_ban.c later = crm_time_add(now, duration); now 40 tools/crm_resource_ban.c crm_time_free(now); now 45 tools/crm_resource_ban.c crm_time_log(LOG_INFO, "now ", now, now 55 tools/crm_resource_ban.c crm_time_free(now); now 403 tools/crm_resource_ban.c crm_time_t *now = crm_time_new(NULL); now 432 tools/crm_resource_ban.c if (crm_time_compare(now, end) == 1) { now 459 tools/crm_resource_ban.c crm_time_free(now); now 31 tools/crm_resource_print.c if (pe_evaluate_rules(lifetime, NULL, data_set->now, NULL) == FALSE) { now 1090 tools/crm_resource_runtime.c data_set->now = crm_time_new(NULL); now 326 tools/crm_rule.c data_set->now = rule_date; now 365 tools/crm_simulate.c data_set->now = crm_time_new(use_date); now 367 tools/crm_simulate.c crm_time_log(LOG_NOTICE, "Pretending 'now' is", data_set->now, now 373 tools/crm_simulate.c data_set->now = crm_time_new(NULL); now 374 tools/crm_simulate.c crm_time_set_timet(data_set->now, &original_date); now 377 tools/crm_simulate.c char *when = crm_time_as_string(data_set->now, now 419 tools/crm_ticket.c char *now = crm_ttoa(time(NULL)); now 421 tools/crm_ticket.c crm_xml_add(ticket_state_xml, "last-granted", now); now 422 tools/crm_ticket.c free(now); now 887 tools/crm_ticket.c data_set->now = crm_time_new(NULL); now 290 tools/crm_verify.c data_set->now = crm_time_new(NULL);