mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
try to use clock_gettime to make sure we don't care if the system time changes
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7165 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
886f99735a
commit
143bed09a3
38 files changed
+174
-104
No files matched your search
@@ -303,7 +303,7 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) time(NULL);
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
|
||||
@@ -303,7 +303,7 @@ static switch_status_t en_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) time(NULL);
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
|
||||
@@ -303,7 +303,7 @@ static switch_status_t es_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) time(NULL);
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
|
||||
@@ -303,7 +303,7 @@ static switch_status_t fr_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) time(NULL);
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
|
||||
@@ -303,7 +303,7 @@ static switch_status_t it_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) time(NULL);
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
|
||||
@@ -303,7 +303,7 @@ static switch_status_t nl_say_time(switch_core_session_t *session, char *tosay,
|
||||
}
|
||||
} else {
|
||||
if ((seconds = atoi(tosay)) <= 0) {
|
||||
seconds = (int64_t) time(NULL);
|
||||
seconds = (int64_t) switch_timestamp(NULL);
|
||||
}
|
||||
|
||||
if (seconds >= 60) {
|
||||
|
||||
Reference in new issue
Block a user