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

Function crm_get_interval

lib/common/utils.c:618–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616#endif
617
618unsigned long long
619crm_get_interval(const char *input)
620{
621 crm_time_t *interval = NULL;
622 unsigned long long msec = 0;
623
624 if (input == NULL) {
625 return 0;
626
627 } else if (input[0] != 'P') {
628 return crm_get_msec(input);
629 }
630
631 interval = crm_time_parse_duration(input);
632 msec = crm_time_get_seconds(interval);
633 crm_time_free(interval);
634 return msec * 1000;
635}
636
637long long
638crm_get_msec(const char *input)

Callers 5

unpack_operation_on_failFunction · 0.85
unpack_operationFunction · 0.85
find_rsc_op_entry_helperFunction · 0.85
RecurringOpFunction · 0.85
RecurringOp_StoppedFunction · 0.85

Calls 4

crm_get_msecFunction · 0.85
crm_time_parse_durationFunction · 0.85
crm_time_get_secondsFunction · 0.85
crm_time_freeFunction · 0.85

Tested by

no test coverage detected