now 1045 daemons/based/based_callbacks.c time_t now = time(NULL); now 1081 daemons/based/based_callbacks.c if ((finished - now) > 3) { now 1082 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 447 daemons/controld/controld_execd_state.c crm_time_t *now = crm_time_new(NULL); now 453 daemons/controld/controld_execd_state.c config_hash, CIB_OPTIONS_FIRST, FALSE, now, NULL); now 459 daemons/controld/controld_execd_state.c crm_time_free(now); now 759 daemons/controld/controld_fencing.c char *now = pcmk__ttoa(time(NULL)); now 773 daemons/controld/controld_fencing.c update_attrd(target, CRM_ATTR_UNFENCED, now, NULL, now 775 daemons/controld/controld_fencing.c free(now); now 164 daemons/controld/controld_te_events.c char *now = pcmk__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 152 daemons/execd/execd_commands.c time_diff_ms(struct timespec *now, struct timespec *old) now 159 daemons/execd/execd_commands.c if (now == NULL) { now 161 daemons/execd/execd_commands.c now = &local_now; now 163 daemons/execd/execd_commands.c diff_ms = (now->tv_sec - old->tv_sec) * 1000 now 164 daemons/execd/execd_commands.c + (now->tv_nsec - old->tv_nsec) / 1000000; now 1753 daemons/fenced/fenced_commands.c time_t now = time(NULL); now 1755 daemons/fenced/fenced_commands.c if (dev->targets == NULL || dev->targets_age + 60 < now) { now 885 daemons/fenced/fenced_remote.c time_t now = time(NULL); now 930 daemons/fenced/fenced_remote.c && (now > (other->total_timeout + other->created))) { now 932 daemons/fenced/fenced_remote.c op->id, other->id, now, other->created, now 2146 daemons/fenced/fenced_remote.c time_t now = time(NULL); now 2165 daemons/fenced/fenced_remote.c } else if ((rop->completed + tolerance) < now) { now 761 daemons/fenced/pacemaker-fenced.c fenced_data_set->now = crm_time_new(NULL); now 273 daemons/pacemakerd/pcmkd_subdaemons.c time_t now = time(NULL); now 288 daemons/pacemakerd/pcmkd_subdaemons.c next_log = now + 30; now 296 daemons/pacemakerd/pcmkd_subdaemons.c } else if (now >= next_log) { now 297 daemons/pacemakerd/pcmkd_subdaemons.c next_log = now + 30; now 187 include/crm/pengine/common.h crm_time_t *now; now 138 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 27 include/crm/pengine/rules_compat.h gboolean test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now); now 31 include/crm/pengine/rules_compat.h crm_time_t *now); now 35 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, now 40 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, now 45 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now); now 49 include/crm/pengine/rules_compat.h enum rsc_role_e role, crm_time_t *now, now 55 include/crm/pengine/rules_compat.h crm_time_t *now, pe_match_data_t *match_data); now 61 include/crm/pengine/rules_compat.h gboolean overwrite, crm_time_t *now); now 31 include/crm/pengine/rules_internal.h int pe_cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec); now 103 include/pcmki/pcmki_scheduler.h crm_time_t *now); now 674 lib/cib/cib_utils.c crm_time_t *now = NULL; now 680 lib/cib/cib_utils.c now = crm_time_new(NULL); now 687 lib/cib/cib_utils.c options, CIB_OPTIONS_FIRST, TRUE, now, NULL); now 692 lib/cib/cib_utils.c crm_time_free(now); now 736 lib/cluster/cpg.c time_t now = time(NULL); now 740 lib/cluster/cpg.c peer->when_lost = now; now 742 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 474 lib/common/logging.c time_t now = time(NULL); now 485 lib/common/logging.c if (nsig == 0 && now == last) { now 502 lib/common/logging.c last = now; now 1923 lib/common/xml.c if ((now + 1) < next) { now 1925 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 162 lib/lrmd/lrmd_alerts.c if (now == NULL) { now 164 lib/lrmd/lrmd_alerts.c now = pcmk__time_timeval_hr_convert(NULL, &tv_now); now 178 lib/lrmd/lrmd_alerts.c if (now) { now 179 lib/lrmd/lrmd_alerts.c char *timestamp = pcmk__time_format_hr(entry->tstamp_format, now); now 193 lib/lrmd/lrmd_alerts.c snprintf(timestamp_usec, sizeof(timestamp_usec), "%06d", now->useconds); now 212 lib/lrmd/lrmd_alerts.c if (now) { now 213 lib/lrmd/lrmd_alerts.c free(now); now 61 lib/pacemaker/pcmk_sched_constraints.c result = pe_evaluate_rules(lifetime, NULL, data_set->now, next_change); now 1156 lib/pacemaker/pcmk_sched_constraints.c data_set->now, next_change, &match_data); now 63 lib/pacemaker/pcmk_sched_messages.c crm_time_t *now) now 72 lib/pacemaker/pcmk_sched_messages.c data_set->now = now; now 78 lib/pacemaker/pcmk_sched_messages.c if (data_set->now == NULL) { now 79 lib/pacemaker/pcmk_sched_messages.c data_set->now = crm_time_new(NULL); now 79 lib/pacemaker/pcmk_sched_transition.c char *now = pcmk__ttoa(time(NULL)); now 86 lib/pacemaker/pcmk_sched_transition.c inject_transient_attr(cib_node, name, now); now 88 lib/pacemaker/pcmk_sched_transition.c free(now); now 152 lib/pengine/complex.c .now = data_set->now, now 196 lib/pengine/complex.c .now = data_set->now, now 228 lib/pengine/complex.c .now = data_set->now, now 509 lib/pengine/complex.c .now = data_set->now, now 297 lib/pengine/failcounts.c time_t now = get_effective_time(data_set); now 299 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 161 lib/pengine/rules.c phase_of_the_moon(crm_time_t * now) now 166 lib/pengine/rules.c crm_time_get_ordinal(now, &y, &diy); now 243 lib/pengine/rules.c pe_cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec) now 247 lib/pengine/rules.c CRM_CHECK(now != NULL, return pcmk_rc_op_unsatisfied); now 249 lib/pengine/rules.c crm_time_get_gregorian(now, &y, &m, &d); now 254 lib/pengine/rules.c crm_time_get_timeofday(now, &h, &m, &s); now 259 lib/pengine/rules.c crm_time_get_ordinal(now, &y, &d); now 262 lib/pengine/rules.c crm_time_get_isoweek(now, &y, &w, &d); now 267 lib/pengine/rules.c CHECK_ONE(cron_spec, "moon", phase_of_the_moon(now)); now 631 lib/pengine/rules.c crm_time_t *now, crm_time_t *next_change) now 636 lib/pengine/rules.c .now = now, now 1170 lib/pengine/rules.c } else if ((start != NULL) && (crm_time_compare(rule_data->now, start) < 0)) { now 1173 lib/pengine/rules.c } else if ((end != NULL) && (crm_time_compare(rule_data->now, end) > 0)) { now 1185 lib/pengine/rules.c rc = pe_cron_range_satisfied(rule_data->now, date_spec); now 1191 lib/pengine/rules.c } else if (crm_time_compare(rule_data->now, start) > 0) { now 1204 lib/pengine/rules.c } else if (crm_time_compare(rule_data->now, end) < 0) { now 1342 lib/pengine/rules.c test_ruleset(xmlNode *ruleset, GHashTable *node_hash, crm_time_t *now) now 1344 lib/pengine/rules.c return pe_evaluate_rules(ruleset, node_hash, now, NULL); now 1348 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) now 1350 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, NULL); now 1354 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 1361 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, &match_data); now 1366 lib/pengine/rules.c crm_time_t *now, pe_match_data_t *match_data) now 1368 lib/pengine/rules.c return pe_test_rule(rule, node_hash, role, now, NULL, match_data); now 1372 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) now 1374 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, NULL); now 1378 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 1385 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, &match_data); now 1390 lib/pengine/rules.c enum rsc_role_e role, crm_time_t *now, now 1393 lib/pengine/rules.c return pe_test_expression(expr, node_hash, role, now, NULL, match_data); now 1400 lib/pengine/rules.c crm_time_t *now) now 1405 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 90 lib/pengine/status.c if (data_set->now == NULL) { now 91 lib/pengine/status.c data_set->now = crm_time_new(NULL); now 311 lib/pengine/status.c crm_time_free(data_set->now); now 206 lib/pengine/unpack.c .now = data_set->now, now 542 lib/pengine/unpack.c .now = data_set->now, now 3412 lib/pengine/unpack.c time_t now = get_effective_time(data_set); now 3416 lib/pengine/unpack.c if ((now >= (last_run + rsc->failure_timeout)) now 3431 lib/pengine/unpack.c (long long) now, unexpired_fail_count, rsc->failure_timeout, now 3434 lib/pengine/unpack.c if (unexpired_fail_count && (now < last_failure)) { now 3930 lib/pengine/unpack.c .now = data_set->now, now 532 lib/pengine/utils.c .now = data_set->now, now 802 lib/pengine/utils.c crm_time_t *now, long long *start_delay) now 809 lib/pengine/utils.c if ((value == NULL) || (interval_ms == 0) || (now == NULL)) { now 823 lib/pengine/utils.c result = crm_time_get_seconds(now) - crm_time_get_seconds(origin); now 863 lib/pengine/utils.c .now = data_set->now, now 902 lib/pengine/utils.c guint interval_ms, crm_time_t *now) now 923 lib/pengine/utils.c if (unpack_interval_origin(value, xml_obj, interval_ms, now, now 978 lib/pengine/utils.c .now = data_set->now, now 1246 lib/pengine/utils.c if (unpack_interval_origin(value, xml_obj, interval_ms, data_set->now, now 1255 lib/pengine/utils.c data_set->now); now 1758 lib/pengine/utils.c if (data_set->now == NULL) { now 1760 lib/pengine/utils.c data_set->now = crm_time_new(NULL); now 1762 lib/pengine/utils.c return crm_time_get_seconds_since_epoch(data_set->now); now 2252 tools/crm_mon.c time_t now = time(NULL); now 2275 tools/crm_mon.c ((now - last_refresh) > (options.reconnect_ms / 1000)) || now 20 tools/crm_resource_ban.c crm_time_t *now = NULL; now 36 tools/crm_resource_ban.c now = crm_time_new(NULL); now 37 tools/crm_resource_ban.c later = crm_time_add(now, duration); now 42 tools/crm_resource_ban.c crm_time_free(now); now 47 tools/crm_resource_ban.c crm_time_log(LOG_INFO, "now ", now, now 57 tools/crm_resource_ban.c crm_time_free(now); now 423 tools/crm_resource_ban.c crm_time_t *now = crm_time_new(NULL); now 452 tools/crm_resource_ban.c if (crm_time_compare(now, end) == 1) { now 479 tools/crm_resource_ban.c crm_time_free(now); now 35 tools/crm_resource_print.c if (pe_evaluate_rules(lifetime, NULL, data_set->now, NULL) == FALSE) { now 1078 tools/crm_resource_runtime.c data_set->now = crm_time_new(NULL); now 90 tools/crm_rule.c eval_date_expression(xmlNode *expr, crm_time_t *now, crm_time_t *next_change) now 95 tools/crm_rule.c .now = now, now 335 tools/crm_rule.c data_set->now = rule_date; now 376 tools/crm_simulate.c data_set->now = crm_time_new(use_date); now 378 tools/crm_simulate.c crm_time_log(LOG_NOTICE, "Pretending 'now' is", data_set->now, now 384 tools/crm_simulate.c data_set->now = crm_time_new(NULL); now 385 tools/crm_simulate.c crm_time_set_timet(data_set->now, &original_date); now 388 tools/crm_simulate.c char *when = crm_time_as_string(data_set->now, now 422 tools/crm_ticket.c char *now = pcmk__ttoa(time(NULL)); now 424 tools/crm_ticket.c crm_xml_add(ticket_state_xml, "last-granted", now); now 425 tools/crm_ticket.c free(now); now 890 tools/crm_ticket.c data_set->now = crm_time_new(NULL); now 251 tools/crm_verify.c data_set->now = crm_time_new(NULL);