Commit 82c21828 authored by Mike Gabriel's avatar Mike Gabriel

nxcomp/src/Loop.cpp: Don't use global variables as function paramters in handleLogReopenInLoop().

parent e4799537
...@@ -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 &logsTs, T_timestamp &nowTs); static void handleLogReopenInLoop(T_timestamp &lTs, T_timestamp &nTs);
// //
// 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 &logsTs, T_timestamp &nowTs) static void handleLogReopenInLoop(T_timestamp &lTs, T_timestamp &nTs)
{ {
// //
// 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(logsTs, nowTs) > control -> FileSizeCheckTimeout) if (diffTimestamp(lTs, nTs) > 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.
// //
logsTs = nowTs; lTs = nTs;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment