dont rotate logs when logage set to 0

This commit is contained in:
Fish 2004-05-29 03:35:18 +00:00
parent ba20165494
commit 920d4565d9

View file

@ -328,6 +328,11 @@ void lgs_RotateLogs() {
hnode_t *hn;
ChannelLog *cl;
/* if Logage is 0, just bail out */
if (LogServ.maxopentime <= 0) {
return;
}
/* scan through the log files */
hash_scan_begin(&hs, lgschans);
while (( hn = hash_scan_next(&hs)) != NULL) {