Skip to content

Commit 9a31494

Browse files
committed
fix format warning
1 parent 538247a commit 9a31494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_flow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static std::string timeval2tr(const struct timeval *ts) {
209209
struct tm *local_tm = localtime(&ts->tv_sec);
210210
std::string time_str;
211211
time_str.resize(15);
212-
sprintf(&time_str[0], "%02d:%02d:%02d.%06d", local_tm->tm_hour, local_tm->tm_min, local_tm->tm_sec, ts->tv_usec);
212+
sprintf(&time_str[0], "%02d:%02d:%02d.%06d", local_tm->tm_hour, local_tm->tm_min, local_tm->tm_sec, (int)ts->tv_usec);
213213
return time_str;
214214
}
215215

0 commit comments

Comments
 (0)