mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
change low res sleep func api names
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11486 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -473,7 +473,7 @@ SWITCH_STANDARD_APP(sched_transfer_function)
|
||||
time_t when;
|
||||
|
||||
if (*argv[0] == '+') {
|
||||
when = switch_timestamp(NULL) + atol(argv[0] + 1);
|
||||
when = switch_epoch_time_now(NULL) + atol(argv[0] + 1);
|
||||
} else {
|
||||
when = atol(argv[0]);
|
||||
}
|
||||
@@ -498,7 +498,7 @@ SWITCH_STANDARD_APP(sched_hangup_function)
|
||||
switch_bool_t bleg = SWITCH_FALSE;
|
||||
|
||||
if (*argv[0] == '+') {
|
||||
when = switch_timestamp(NULL) + atol(argv[0] + 1);
|
||||
when = switch_epoch_time_now(NULL) + atol(argv[0] + 1);
|
||||
} else {
|
||||
when = atol(argv[0]);
|
||||
}
|
||||
@@ -530,7 +530,7 @@ SWITCH_STANDARD_APP(sched_broadcast_function)
|
||||
switch_media_flag_t flags = SMF_NONE;
|
||||
|
||||
if (*argv[0] == '+') {
|
||||
when = switch_timestamp(NULL) + atol(argv[0] + 1);
|
||||
when = switch_epoch_time_now(NULL) + atol(argv[0] + 1);
|
||||
} else {
|
||||
when = atol(argv[0]);
|
||||
}
|
||||
@@ -981,7 +981,7 @@ SWITCH_STANDARD_APP(strftime_function)
|
||||
switch_time_exp_t tm;
|
||||
char date[80] = "";
|
||||
|
||||
switch_time_exp_lt(&tm, switch_timestamp_now());
|
||||
switch_time_exp_lt(&tm, switch_micro_time_now());
|
||||
switch_strftime(date, &retsize, sizeof(date), argv[1], &tm);
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "SET [%s]=[%s]\n", argv[0], date);
|
||||
switch_channel_set_variable(switch_core_session_get_channel(session), argv[0], date);
|
||||
@@ -993,7 +993,7 @@ SWITCH_STANDARD_API(strepoch_api_function)
|
||||
switch_time_t out;
|
||||
|
||||
if (switch_strlen_zero(cmd)) {
|
||||
out = switch_timestamp_now();
|
||||
out = switch_micro_time_now();
|
||||
} else {
|
||||
out = switch_str_time(cmd);
|
||||
}
|
||||
@@ -1014,7 +1014,7 @@ SWITCH_STANDARD_API(strftime_api_function)
|
||||
thetime = switch_time_make(atoi(cmd), 0);
|
||||
cmd = p + 1;
|
||||
} else {
|
||||
thetime = switch_timestamp_now();
|
||||
thetime = switch_micro_time_now();
|
||||
}
|
||||
switch_time_exp_lt(&tm, thetime);
|
||||
if (switch_strlen_zero(cmd)) {
|
||||
@@ -1207,12 +1207,12 @@ SWITCH_STANDARD_APP(tone_detect_session_function)
|
||||
uint32_t mto;
|
||||
if (*argv[3] == '+') {
|
||||
if ((mto = atol(argv[3] + 1)) > 0) {
|
||||
to = switch_timestamp(NULL) + mto;
|
||||
to = switch_epoch_time_now(NULL) + mto;
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "INVALID Timeout!\n");
|
||||
}
|
||||
} else {
|
||||
if ((to = atol(argv[3])) < switch_timestamp(NULL)) {
|
||||
if ((to = atol(argv[3])) < switch_epoch_time_now(NULL)) {
|
||||
if (to >= 1) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "INVALID Timeout!\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user