| 1282 | } |
| 1283 | |
| 1284 | time_t |
| 1285 | get_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 | |
| 1306 | struct fail_search { |
| 1307 | resource_t *rsc; |
no outgoing calls
no test coverage detected