Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
842e5236
Commit
842e5236
authored
Jul 15, 2016
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed possible name collision with boost chrono
parent
b4923956
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
file_sinks.h
include/spdlog/sinks/file_sinks.h
+3
-4
No files found.
include/spdlog/sinks/file_sinks.h
View file @
842e5236
...
@@ -214,9 +214,8 @@ protected:
...
@@ -214,9 +214,8 @@ protected:
private
:
private
:
std
::
chrono
::
system_clock
::
time_point
_next_rotation_tp
()
std
::
chrono
::
system_clock
::
time_point
_next_rotation_tp
()
{
{
using
namespace
std
::
chrono
;
auto
now
=
std
::
chrono
::
system_clock
::
now
();
auto
now
=
system_clock
::
now
();
time_t
tnow
=
std
::
chrono
::
system_clock
::
to_time_t
(
now
);
time_t
tnow
=
std
::
chrono
::
system_clock
::
to_time_t
(
now
);
tm
date
=
spdlog
::
details
::
os
::
localtime
(
tnow
);
tm
date
=
spdlog
::
details
::
os
::
localtime
(
tnow
);
date
.
tm_hour
=
_rotation_h
;
date
.
tm_hour
=
_rotation_h
;
...
@@ -226,7 +225,7 @@ private:
...
@@ -226,7 +225,7 @@ private:
if
(
rotation_time
>
now
)
if
(
rotation_time
>
now
)
return
rotation_time
;
return
rotation_time
;
else
else
return
s
ystem_clock
::
time_point
(
rotation_time
+
hours
(
24
));
return
s
td
::
chrono
::
system_clock
::
time_point
(
rotation_time
+
std
::
chrono
::
hours
(
24
));
}
}
filename_t
_base_filename
;
filename_t
_base_filename
;
...
...
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