MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / get_timet_now

Function get_timet_now

lib/pengine/utils.c:1284–1304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282}
1283
1284time_t
1285get_timet_now(pe_working_set_t * data_set)
1286{
1287 time_t now = 0;
1288
1289 /* if (data_set && data_set->now) { */
1290 /* now = data_set->now->tm_now; */
1291 /* } */
1292
1293 if (now == 0) {
1294 /* eventually we should convert data_set->now into time_tm
1295 * for now, its only triggered by PE regression tests
1296 */
1297 now = time(NULL);
1298 crm_crit("Defaulting to 'now'");
1299 /* if (data_set && data_set->now) { */
1300 /* data_set->now->tm_now = now; */
1301 /* } */
1302 }
1303 return now;
1304}
1305
1306struct fail_search {
1307 resource_t *rsc;

Callers 2

get_failcountFunction · 0.85
unpack_rsc_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected