now 1066 cib/callbacks.c int now = time(NULL); now 1104 cib/callbacks.c if (finished - now > 3) { now 1105 cib/callbacks.c crm_trace("%s operation took %lds to complete", op, (long)(finished - now)); now 1000 crmd/control.c crm_time_t *now = crm_time_new(NULL); now 1034 crmd/control.c CIB_OPTIONS_FIRST, FALSE, now); now 1112 crmd/control.c crm_time_free(now); now 904 crmd/lrm.c time_t now = time(NULL); now 905 crmd/lrm.c char *now_s = crm_itoa(now); now 475 crmd/lrm_state.c crm_time_t *now = crm_time_new(NULL); now 481 crmd/lrm_state.c output, output, XML_CIB_TAG_PROPSET, NULL, config_hash, CIB_OPTIONS_FIRST, FALSE, now); now 487 crmd/lrm_state.c crm_time_free(now); now 512 crmd/lrm_state.c time_t now = time(NULL); now 518 crmd/lrm_state.c now_s = crm_itoa(now); now 942 crmd/messages.c time_t now = time(NULL); now 953 crmd/messages.c now_s = crm_itoa(now); now 134 crmd/te_actions.c time_t now = time(NULL); now 135 crmd/te_actions.c char *now_s = crm_itoa(now); now 801 crmd/te_callbacks.c char *now = crm_itoa(time(NULL)); now 803 crmd/te_callbacks.c update_attrd(target, CRM_ATTR_UNFENCED, now, NULL, FALSE); now 804 crmd/te_callbacks.c free(now); now 179 crmd/te_events.c char *now = crm_itoa(time(NULL)); now 189 crmd/te_events.c rsc_id, on_uname, task, rc, value, now); now 202 crmd/te_events.c update_attrd(on_uname, attr_name, now, NULL, is_remote_node); now 205 crmd/te_events.c free(now); now 126 crmd/throttle.c time_t now = time(NULL); now 174 crmd/throttle.c && last_call < now now 178 crmd/throttle.c time_t elapsed = now - last_call; now 188 crmd/throttle.c crm_debug("Init %lu + %lu ticks at %ld (%lu tps)", utime, stime, (long)now, ticks_per_s); now 191 crmd/throttle.c last_call = now; now 380 crmd/throttle.c enum throttle_state_e now = throttle_none; now 383 crmd/throttle.c now = throttle_mode(); now 384 crmd/throttle.c throttle_send_command(now); now 392 crmd/throttle.c now = throttle_mode(); now 393 crmd/throttle.c throttle_send_command(now); now 1625 fencing/commands.c time_t now = time(NULL); now 1627 fencing/commands.c if (dev->targets == NULL || dev->targets_age + 60 < now) { now 712 fencing/main.c extern xmlNode *do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now); now 731 fencing/main.c data_set.now = crm_time_new(NULL); now 833 fencing/remote.c time_t now = time(NULL); now 865 fencing/remote.c } else if(other->total_timeout > 0 && now > (other->total_timeout + other->created)) { now 868 fencing/remote.c now, other->created, other->total_timeout); now 2090 fencing/remote.c time_t now = time(NULL); now 2110 fencing/remote.c } else if ((rop->completed + tolerance) < now) { now 52 include/crm/pengine/rules.h gboolean test_ruleset(xmlNode * ruleset, GHashTable * node_hash, crm_time_t * now); now 54 include/crm/pengine/rules.h gboolean test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now); now 56 include/crm/pengine/rules.h gboolean pe_test_rule_re(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, now 59 include/crm/pengine/rules.h gboolean pe_test_rule_full(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, now 63 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t * now); now 66 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t * now, pe_re_match_data_t * re_match_data); now 69 include/crm/pengine/rules.h enum rsc_role_e role, crm_time_t * now, pe_match_data_t * match_data); now 73 include/crm/pengine/rules.h const char *always_first, gboolean overwrite, crm_time_t * now); now 77 include/crm/pengine/rules.h GHashTable * node_hash, xmlNode * hash, crm_time_t * now); now 87 include/crm/pengine/status.h crm_time_t *now; now 1074 lib/ais/plugin.c time_t now = time(NULL); now 1076 lib/ais/plugin.c if (now > next_log) { now 1077 lib/ais/plugin.c next_log = now + 300; now 1105 lib/ais/plugin.c time_t now = time(NULL); now 1109 lib/ais/plugin.c next_log = now + 30; now 1120 lib/ais/plugin.c if (now >= next_log) { now 1122 lib/ais/plugin.c next_log = now + 30; now 1608 lib/ais/plugin.c time_t now = time(NULL); now 1618 lib/ais/plugin.c started = now; now 1623 lib/ais/plugin.c if (started + 15 < now) { now 524 lib/cib/cib_utils.c time_t now = time(NULL); now 527 lib/cib/cib_utils.c now_str = ctime(&now); now 749 lib/cib/cib_utils.c crm_time_t *now = NULL; now 755 lib/cib/cib_utils.c now = crm_time_new(NULL); now 762 lib/cib/cib_utils.c CIB_OPTIONS_FIRST, TRUE, now); now 767 lib/cib/cib_utils.c crm_time_free(now); now 403 lib/cluster/cpg.c time_t now = time(NULL); now 407 lib/cluster/cpg.c peer->votes = now; now 409 lib/cluster/cpg.c } else if(now > (60 + peer->votes)) { now 589 lib/common/iso8601.c time_t now = time(NULL); now 590 lib/common/iso8601.c struct tm *now_tm = localtime(&now); now 432 lib/common/logging.c time_t now = time(NULL); now 443 lib/common/logging.c if (nsig == 0 && now == last) { now 460 lib/common/logging.c last = now; now 3008 lib/common/xml.c time_t now = time(NULL); now 3009 lib/common/xml.c char *now_str = ctime(&now); now 3717 lib/common/xml.c time_t now, next; now 3726 lib/common/xml.c now = time(NULL); now 3746 lib/common/xml.c if ((now + 1) < next) { now 3748 lib/common/xml.c crm_err("xmlNodeDump() -> %dbytes took %ds", *max, next - now); now 132 lib/lrmd/lrmd_alerts.c crm_time_hr_t *now = NULL; now 157 lib/lrmd/lrmd_alerts.c if (now == NULL) { now 158 lib/lrmd/lrmd_alerts.c now = crm_time_hr_new(NULL); now 171 lib/lrmd/lrmd_alerts.c if (now) { now 172 lib/lrmd/lrmd_alerts.c char *timestamp = crm_time_format_hr(entry->tstamp_format, now); now 194 lib/lrmd/lrmd_alerts.c if (now) { now 195 lib/lrmd/lrmd_alerts.c free(now); now 1009 lib/lrmd/lrmd_client.c time_t now = time(NULL); now 1011 lib/lrmd/lrmd_client.c if ((now - key_cache_updated) < 60) { now 153 lib/pengine/complex.c meta_hash, NULL, FALSE, data_set->now); now 160 lib/pengine/complex.c meta_hash, NULL, FALSE, data_set->now); now 170 lib/pengine/complex.c node_hash, meta_hash, NULL, FALSE, data_set->now); now 184 lib/pengine/complex.c meta_hash, NULL, FALSE, data_set->now); now 193 lib/pengine/complex.c node_hash, meta_hash, NULL, FALSE, data_set->now); now 209 lib/pengine/complex.c meta_hash, data_set->now); now 218 lib/pengine/complex.c node_hash, meta_hash, data_set->now); now 845 lib/pengine/complex.c (*rsc)->utilization, NULL, FALSE, data_set->now); now 279 lib/pengine/failcounts.c time_t now = get_effective_time(data_set); now 281 lib/pengine/failcounts.c if (now > (last + rsc->failure_timeout)) { now 37 lib/pengine/rules.c gboolean test_date_expression(xmlNode * time_expr, crm_time_t * now); now 38 lib/pengine/rules.c gboolean cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec); now 39 lib/pengine/rules.c gboolean test_attr_expression(xmlNode * expr, GHashTable * hash, crm_time_t * now); now 40 lib/pengine/rules.c gboolean pe_test_attr_expression_full(xmlNode * expr, GHashTable * hash, crm_time_t * now, pe_match_data_t * match_data); now 41 lib/pengine/rules.c gboolean test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now); now 44 lib/pengine/rules.c test_ruleset(xmlNode * ruleset, GHashTable * node_hash, crm_time_t * now) now 52 lib/pengine/rules.c if (test_rule(rule, node_hash, RSC_ROLE_UNKNOWN, now)) { now 62 lib/pengine/rules.c test_rule(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) now 64 lib/pengine/rules.c return pe_test_rule_full(rule, node_hash, role, now, NULL); now 68 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 75 lib/pengine/rules.c return pe_test_rule_full(rule, node_hash, role, now, &match_data); now 79 lib/pengine/rules.c pe_test_rule_full(xmlNode * rule, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_match_data_t * match_data) now 97 lib/pengine/rules.c test = pe_test_expression_full(expr, node_hash, role, now, match_data); now 119 lib/pengine/rules.c test_expression(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now) now 121 lib/pengine/rules.c return pe_test_expression_full(expr, node_hash, role, now, NULL); now 125 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 132 lib/pengine/rules.c return pe_test_expression_full(expr, node_hash, role, now, &match_data); now 136 lib/pengine/rules.c pe_test_expression_full(xmlNode * expr, GHashTable * node_hash, enum rsc_role_e role, crm_time_t * now, pe_match_data_t * match_data) now 143 lib/pengine/rules.c accept = pe_test_rule_full(expr, node_hash, role, now, match_data); now 151 lib/pengine/rules.c accept = pe_test_attr_expression_full(expr, node_hash, now, match_data); now 156 lib/pengine/rules.c accept = test_date_expression(expr, now); now 160 lib/pengine/rules.c accept = test_role_expression(expr, role, now); now 168 lib/pengine/rules.c accept = test_attr_expression(expr, node_hash, now); now 225 lib/pengine/rules.c test_role_expression(xmlNode * expr, enum rsc_role_e role, crm_time_t * now) now 266 lib/pengine/rules.c test_attr_expression(xmlNode * expr, GHashTable * hash, crm_time_t * now) now 268 lib/pengine/rules.c return pe_test_attr_expression_full(expr, hash, now, NULL); now 272 lib/pengine/rules.c pe_test_attr_expression_full(xmlNode * expr, GHashTable * hash, crm_time_t * now, pe_match_data_t * match_data) now 445 lib/pengine/rules.c phase_of_the_moon(crm_time_t * now) now 450 lib/pengine/rules.c crm_time_get_ordinal(now, &y, &diy); now 545 lib/pengine/rules.c cron_range_satisfied(crm_time_t * now, xmlNode * cron_spec) now 556 lib/pengine/rules.c CRM_CHECK(now != NULL, return FALSE); now 558 lib/pengine/rules.c crm_time_get_timeofday(now, &h, &m, &s); now 564 lib/pengine/rules.c crm_time_get_gregorian(now, &y, &m, &d); now 570 lib/pengine/rules.c crm_time_get_ordinal(now, &y, &d); now 574 lib/pengine/rules.c crm_time_get_isoweek(now, &y, &w, &d); now 580 lib/pengine/rules.c cron_check("moon", phase_of_the_moon(now)); now 613 lib/pengine/rules.c test_date_expression(xmlNode * time_expr, crm_time_t * now) now 647 lib/pengine/rules.c if (start != NULL && crm_time_compare(start, now) > 0) { now 649 lib/pengine/rules.c } else if (end != NULL && crm_time_compare(end, now) < 0) { now 654 lib/pengine/rules.c passed = cron_range_satisfied(now, date_spec); now 657 lib/pengine/rules.c } else if (safe_str_eq(op, "gt") && crm_time_compare(start, now) < 0) { now 660 lib/pengine/rules.c } else if (safe_str_eq(op, "lt") && crm_time_compare(end, now) > 0) { now 663 lib/pengine/rules.c } else if (safe_str_eq(op, "eq") && crm_time_compare(start, now) == 0) { now 666 lib/pengine/rules.c } else if (safe_str_eq(op, "neq") && crm_time_compare(start, now) != 0) { now 824 lib/pengine/rules.c crm_time_t *now; now 834 lib/pengine/rules.c if (test_ruleset(pair->attr_set, unpack_data->node_hash, unpack_data->now) == FALSE) { now 858 lib/pengine/rules.c if (test_ruleset(pair->attr_set, unpack_data->node_hash, unpack_data->now) == FALSE) { now 869 lib/pengine/rules.c gboolean overwrite, crm_time_t * now, unpack_data_t * data) now 906 lib/pengine/rules.c data->now = now; now 921 lib/pengine/rules.c gboolean overwrite, crm_time_t * now) now 925 lib/pengine/rules.c always_first, overwrite, now, &data); now 936 lib/pengine/rules.c GHashTable * node_hash, xmlNode * hash, crm_time_t * now) now 940 lib/pengine/rules.c NULL, FALSE, now, &data); now 50 lib/pengine/rules_alerts.c crm_time_t *now = crm_time_new(NULL); now 54 lib/pengine/rules_alerts.c config_hash, NULL, FALSE, now); now 55 lib/pengine/rules_alerts.c crm_time_free(now); now 70 lib/pengine/status.c if (data_set->now == NULL) { now 71 lib/pengine/status.c data_set->now = crm_time_new(NULL); now 219 lib/pengine/status.c crm_time_free(data_set->now); now 184 lib/pengine/unpack.c CIB_OPTIONS_FIRST, FALSE, data_set->now); now 564 lib/pengine/unpack.c new_node->details->utilization, NULL, FALSE, data_set->now); now 1182 lib/pengine/unpack.c state_hash, NULL, TRUE, data_set->now); now 2899 lib/pengine/unpack.c time_t now = get_effective_time(data_set); now 2901 lib/pengine/unpack.c if (now > (last_run + failure_timeout)) { now 3336 lib/pengine/unpack.c node->details->attrs, NULL, overwrite, data_set->now); now 542 lib/pengine/utils.c action->extra, NULL, FALSE, data_set->now); now 740 lib/pengine/utils.c unsigned long long interval, crm_time_t *now) now 747 lib/pengine/utils.c if (origin && now) { now 749 lib/pengine/utils.c int rc = crm_time_compare(origin, now); now 758 lib/pengine/utils.c rc = crm_time_compare(origin, now); now 764 lib/pengine/utils.c rc = crm_time_compare(origin, now); now 767 lib/pengine/utils.c delay = crm_time_calculate_duration(origin, now); now 772 lib/pengine/utils.c crm_time_log(LOG_TRACE, "now", now, now 862 lib/pengine/utils.c NULL, action_meta, NULL, FALSE, data_set->now); now 884 lib/pengine/utils.c unpack_versioned_meta(xmlNode *versioned_meta, xmlNode *xml_obj, unsigned long long interval, crm_time_t *now) now 899 lib/pengine/utils.c int start_delay = unpack_interval_origin(value, NULL, xml_obj, interval, now); now 929 lib/pengine/utils.c action->meta, NULL, FALSE, data_set->now); now 943 lib/pengine/utils.c NULL, action->meta, NULL, FALSE, data_set->now); now 946 lib/pengine/utils.c NULL, action->meta, NULL, FALSE, data_set->now); now 951 lib/pengine/utils.c rsc_details->versioned_parameters, data_set->now); now 953 lib/pengine/utils.c rsc_details->versioned_meta, data_set->now); now 1153 lib/pengine/utils.c unpack_interval_origin(value, action->meta, xml_obj, interval, data_set->now); now 1163 lib/pengine/utils.c data_set->now); now 1678 lib/pengine/utils.c if (data_set->now == NULL) { now 1680 lib/pengine/utils.c data_set->now = crm_time_new(NULL); now 1682 lib/pengine/utils.c return crm_time_get_seconds_since_epoch(data_set->now); now 428 lrmd/lrmd.c time_diff_ms(struct timeb *now, struct timeb *old) now 432 lrmd/lrmd.c if (now == NULL) { now 434 lrmd/lrmd.c now = &local_now; now 439 lrmd/lrmd.c return difftime(now->time, old->time) * 1000 + now->millitm - old->millitm; now 391 lrmd/test.c data_set.now = crm_time_new(NULL); now 397 mcp/pacemaker.c time_t now = time(NULL); now 400 mcp/pacemaker.c next_log = now + 30; now 407 mcp/pacemaker.c } else if (now >= next_log) { now 408 mcp/pacemaker.c next_log = now + 30; now 84 pengine/constraints.c if (test_ruleset(lifetime, NULL, data_set->now) == FALSE) { now 1070 pengine/constraints.c accept = pe_test_rule_full(rule_xml, node->details->attrs, RSC_ROLE_UNKNOWN, data_set->now, match_data); now 37 pengine/pengine.c xmlNode *do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now); now 223 pengine/pengine.c do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now) now 235 pengine/pengine.c data_set->now = now; now 241 pengine/pengine.c if (data_set->now == NULL) { now 242 pengine/pengine.c data_set->now = crm_time_new(NULL); now 49 pengine/ptest.c extern xmlNode *do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now); now 3447 tools/crm_mon.c time_t now = time(NULL); now 3449 tools/crm_mon.c sprintf(csysuptime, "%lld", (long long) now); now 4046 tools/crm_mon.c long now = time(NULL); now 4110 tools/crm_mon.c if ((now - last_refresh) > (reconnect_msec / 1000)) { now 103 tools/crm_resource.h extern xmlNode *do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now); now 27 tools/crm_resource_ban.c crm_time_t *now = NULL; now 44 tools/crm_resource_ban.c now = crm_time_new(NULL); now 45 tools/crm_resource_ban.c later = crm_time_add(now, duration); now 46 tools/crm_resource_ban.c crm_time_log(LOG_INFO, "now ", now, now 56 tools/crm_resource_ban.c crm_time_free(now); now 42 tools/crm_resource_print.c if (test_ruleset(lifetime, NULL, data_set->now) == FALSE) { now 342 tools/crm_resource_print.c params, NULL, FALSE, data_set->now); now 911 tools/crm_resource_runtime.c data_set->now = crm_time_new(NULL); now 55 tools/crm_simulate.c extern xmlNode *do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now); now 69 tools/crm_simulate.c data_set->now = crm_time_new(use_date); now 74 tools/crm_simulate.c data_set->now = crm_time_new(NULL); now 75 tools/crm_simulate.c crm_time_set_timet(data_set->now, &original_date); now 77 tools/crm_simulate.c when = crm_time_as_string(data_set->now, crm_time_log_date|crm_time_log_timeofday); now 802 tools/crm_simulate.c if (data_set.now != NULL) { now 804 tools/crm_simulate.c crm_time_log(LOG_WARNING, "Set fake 'now' to", data_set.now, now 565 tools/crm_ticket.c char *now = crm_itoa(time(NULL)); now 568 tools/crm_ticket.c crm_xml_add(ticket_state_xml, "last-granted", now); now 569 tools/crm_ticket.c free(now); now 870 tools/crm_ticket.c data_set.now = crm_time_new(NULL); now 44 tools/crm_verify.c extern xmlNode *do_calculations(pe_working_set_t * data_set, xmlNode * xml_input, crm_time_t * now); now 249 tools/crm_verify.c data_set.now = crm_time_new(NULL); now 102 tools/fake_transition.c char *now = crm_itoa(time(NULL)); now 109 tools/fake_transition.c inject_transient_attr(cib_node, name, now); now 111 tools/fake_transition.c free(now);