We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src/core/timer.c SWINLINE time_t swTimer_get_ms() { struct timeval now; if (gettimeofday(&now, NULL) < 0) { swWarn("gettimeofday fail.Error: %s[%d]", strerror(errno), errno); return SW_ERR; } return (now.tv_sec * 1000) + (now.tv_usec / 1000); } 以上的代码在32位LINUX运行时,会导致time_t溢出,返回负数。
The text was updated successfully, but these errors were encountered:
感谢反馈此BUG,我们尽快修复一下。
Sorry, something went wrong.
de0829a
No branches or pull requests
src/core/timer.c
SWINLINE time_t swTimer_get_ms()
{
struct timeval now;
if (gettimeofday(&now, NULL) < 0)
{
swWarn("gettimeofday fail.Error: %s[%d]", strerror(errno), errno);
return SW_ERR;
}
return (now.tv_sec * 1000) + (now.tv_usec / 1000);
}
以上的代码在32位LINUX运行时,会导致time_t溢出,返回负数。
The text was updated successfully, but these errors were encountered: