
On Fri, Jan 30, 2004 at 02:48:10PM +0100, Brice Levy wrote:
Your setup sounds ok.
Take a look on the UncountedUnlockTime config option
I had left Default.pm untouched, and did not use UncountedUnlockTime in Kernal/Config.pm, so the values were the default ones. The test was done this morning, friday morning actually, so the unlocktime should have been counted. I pasted the defaults from Default.pm, only removing the whole friday line, and it worked ! If I add the friday line again, it does not work anymore.
I noticed a similar problem with our unlocking, as we're not counting non-business hours on every day of the week (1900-0700). Adding in copious output statements, it seems there's a bug in bin/UnlockTickets.pl, where it doesn't properly count what hours fall within the UncountedUnlockTime. The following changes "appear" to work, but YMMV: change: elsif ($CountDay eq $ToDay && $Nh >= $_) { (about line 152) to: elsif ($CountDay eq $ToDay && $CountDay ne $LockDay && $Nh >= $_) { change: elsif ($CountDay eq $LockDay && $h <= $_) { (about line 155) to: elsif ($CountDay eq $LockDay && $CountDay ne $ToDay && $h <= $_) { and then add a final "else" to the end of the same block (156-157ish): else { if($h <= $_) { $UncountedUnlockTime = $UncountedUnlockTime+(60*60); } } This seems to properly account for the fact that there can be uncounted unlock times both at the beginning and the end of the day, AND will only pay attention to uncounted unlock times that are <= the current hour. Mike -- Michael A. Gurski (opt. [first].)[last]@pobox.com http://www.pobox.com/~[last] 1024R/39B5BADD PGP: 34 93 A9 94 B1 59 48 B7 17 57 1E 4E 62 56 45 70 1024D/1166213E GPG: 628F 37A4 62AF 1475 45DB AD81 ADC9 E606 1166 213E 4096R/C0B4F04B GPG: 5B3E 75D7 43CF CF34 4042 7788 1DCE B5EE C0B4 F04B Views expressed by the host do not reflect the staff, management or sponsors.