Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
fa4f0352
Commit
fa4f0352
authored
Nov 22, 2014
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nghttp: Fix compile error and warning with libc++
parent
4ee89e62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
src/nghttp.cc
src/nghttp.cc
+1
-0
src/util.cc
src/util.cc
+2
-1
No files found.
src/nghttp.cc
View file @
fa4f0352
...
@@ -1057,6 +1057,7 @@ struct HttpClient {
...
@@ -1057,6 +1057,7 @@ struct HttpClient {
auto
&
req_stat
=
req
->
stat
;
auto
&
req_stat
=
req
->
stat
;
auto
request_time
=
(
i
==
0
)
?
stat
.
started_system_time
:
auto
request_time
=
(
i
==
0
)
?
stat
.
started_system_time
:
stat
.
started_system_time
+
stat
.
started_system_time
+
std
::
chrono
::
duration_cast
<
std
::
chrono
::
system_clock
::
duration
>
(
req_stat
.
on_request_time
-
stat
.
on_started_time
);
(
req_stat
.
on_request_time
-
stat
.
on_started_time
);
auto
wait_delta
=
std
::
chrono
::
duration_cast
auto
wait_delta
=
std
::
chrono
::
duration_cast
...
...
src/util.cc
View file @
fa4f0352
...
@@ -729,7 +729,8 @@ std::string format_iso8601(const std::chrono::system_clock::time_point& tp)
...
@@ -729,7 +729,8 @@ std::string format_iso8601(const std::chrono::system_clock::time_point& tp)
char
buf
[
128
];
char
buf
[
128
];
auto
nwrite
=
strftime
(
buf
,
sizeof
(
buf
),
"%Y-%m-%dT%H:%M:%S"
,
&
tms
);
auto
nwrite
=
strftime
(
buf
,
sizeof
(
buf
),
"%Y-%m-%dT%H:%M:%S"
,
&
tms
);
snprintf
(
&
buf
[
nwrite
],
sizeof
(
buf
)
-
nwrite
,
".%03ldZ"
,
t
.
count
()
%
1000
);
snprintf
(
&
buf
[
nwrite
],
sizeof
(
buf
)
-
nwrite
,
".%03dZ"
,
static_cast
<
int
>
(
t
.
count
()
%
1000
));
return
buf
;
return
buf
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment