Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
82c21828
Commit
82c21828
authored
Jul 12, 2017
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxcomp/src/Loop.cpp: Don't use global variables as function paramters in handleLogReopenInLoop().
parent
e4799537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Loop.cpp
nxcomp/src/Loop.cpp
+4
-4
No files found.
nxcomp/src/Loop.cpp
View file @
82c21828
...
@@ -711,7 +711,7 @@ static inline void handleTerminatedInLoop();
...
@@ -711,7 +711,7 @@ static inline void handleTerminatedInLoop();
// Monitor the size of the log file.
// Monitor the size of the log file.
//
//
static
void
handleLogReopenInLoop
(
T_timestamp
&
l
ogsTs
,
T_timestamp
&
now
Ts
);
static
void
handleLogReopenInLoop
(
T_timestamp
&
l
Ts
,
T_timestamp
&
n
Ts
);
//
//
// Directory where the NX binaries and libraries reside.
// Directory where the NX binaries and libraries reside.
...
@@ -16482,7 +16482,7 @@ static inline void handleEventsInLoop()
...
@@ -16482,7 +16482,7 @@ static inline void handleEventsInLoop()
}
}
}
}
static
void
handleLogReopenInLoop
(
T_timestamp
&
l
ogsTs
,
T_timestamp
&
now
Ts
)
static
void
handleLogReopenInLoop
(
T_timestamp
&
l
Ts
,
T_timestamp
&
n
Ts
)
{
{
//
//
// If need to limit the size of the
// If need to limit the size of the
...
@@ -16492,7 +16492,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs)
...
@@ -16492,7 +16492,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs)
#ifndef QUOTA
#ifndef QUOTA
if
(
diffTimestamp
(
l
ogsTs
,
now
Ts
)
>
control
->
FileSizeCheckTimeout
)
if
(
diffTimestamp
(
l
Ts
,
n
Ts
)
>
control
->
FileSizeCheckTimeout
)
#endif
#endif
{
{
...
@@ -16514,7 +16514,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs)
...
@@ -16514,7 +16514,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs)
// Reset to current timestamp.
// Reset to current timestamp.
//
//
l
ogsTs
=
now
Ts
;
l
Ts
=
n
Ts
;
}
}
}
}
...
...
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