From 74c2948c2299773fd3816af43e06e3bdf714ba3a Mon Sep 17 00:00:00 2001 From: tilghman Date: Wed, 18 Jul 2007 19:47:20 +0000 Subject: Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75706 f38db490-d61c-443f-a65b-d21fe96a405b --- main/pbx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/pbx.c') diff --git a/main/pbx.c b/main/pbx.c index 550add495..918fb5f58 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -4279,10 +4279,10 @@ int ast_build_timing(struct ast_timing *i, const char *info_in) int ast_check_timing(const struct ast_timing *i) { - struct tm tm; - time_t t = time(NULL); + struct ast_tm tm; + struct timeval tv = ast_tvnow(); - ast_localtime(&t, &tm, NULL); + ast_localtime(&tv, &tm, NULL); /* If it's not the right month, return */ if (!(i->monthmask & (1 << tm.tm_mon))) -- cgit v1.2.3