aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-12 21:49:28 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-07-26 10:12:44 +0200
commit82c2182887ed3be9ff6b59f368597b65e5ef13df (patch)
tree26076daf1e08a90b5c2deeb6c8ba7c31591bf87b /nxcomp/src
parente47995370e0e3353c7b1f0b5d870935614c59ad9 (diff)
downloadnx-libs-82c2182887ed3be9ff6b59f368597b65e5ef13df.tar.gz
nx-libs-82c2182887ed3be9ff6b59f368597b65e5ef13df.tar.bz2
nx-libs-82c2182887ed3be9ff6b59f368597b65e5ef13df.zip
nxcomp/src/Loop.cpp: Don't use global variables as function paramters in handleLogReopenInLoop().
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/Loop.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index 6c1ba2c40..8538036e2 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -711,7 +711,7 @@ static inline void handleTerminatedInLoop();
// 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.
@@ -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
@@ -16492,7 +16492,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs)
#ifndef QUOTA
- if (diffTimestamp(logsTs, nowTs) > control -> FileSizeCheckTimeout)
+ if (diffTimestamp(lTs, nTs) > control -> FileSizeCheckTimeout)
#endif
{
@@ -16514,7 +16514,7 @@ static void handleLogReopenInLoop(T_timestamp &logsTs, T_timestamp &nowTs)
// Reset to current timestamp.
//
- logsTs = nowTs;
+ lTs = nTs;
}
}