]> jfr.im git - irc.git/blame - software/!RELEASES/ircservices/achurch.org/services/lists/ircservices/2001/001503.html
RELEASE -> !RELEASE
[irc.git] / software / !RELEASES / ircservices / achurch.org / services / lists / ircservices / 2001 / 001503.html
CommitLineData
3bd189cb
JR
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3 <HEAD>
4 <TITLE> [IRCServices] Rotate Log function - performance
5 </TITLE>
6 <LINK REL="Index" HREF="index.html" >
7 <LINK REL="made" HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Rotate%20Log%20function%20-%20performance&In-Reply-To=3A9ABE5B.8493F580%40expres.ro">
8 <META NAME="robots" CONTENT="index,nofollow">
9 <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
10 <LINK REL="Previous" HREF="001502.html">
11 <LINK REL="Next" HREF="001504.html">
12 </HEAD>
13 <BODY BGCOLOR="#ffffff">
14 <H1>[IRCServices] Rotate Log function - performance</H1>
15 <B>Mark Hetherington</B>
16 <A HREF="mailto:ircservices%40ircservices.za.net?Subject=%5BIRCServices%5D%20Rotate%20Log%20function%20-%20performance&In-Reply-To=3A9ABE5B.8493F580%40expres.ro"
17 TITLE="[IRCServices] Rotate Log function - performance">markh at eurodltd.co.uk
18 </A><BR>
19 <I>Mon Feb 26 23:58:02 PST 2001</I>
20 <P><UL>
21 <LI>Previous message: <A HREF="001502.html">AW: [IRCServices] Wierd message...
22</A></li>
23 <LI>Next message: <A HREF="001504.html">[IRCServices] Rotate Log function - performance
24</A></li>
25 <LI> <B>Messages sorted by:</B>
26 <a href="date.html#1503">[ date ]</a>
27 <a href="thread.html#1503">[ thread ]</a>
28 <a href="subject.html#1503">[ subject ]</a>
29 <a href="author.html#1503">[ author ]</a>
30 </LI>
31 </UL>
32 <HR>
33<!--beginarticle-->
34<PRE>I am considering adding a rotate log function to services (and to the ircd
35but that is beyond the scope of this list) which will automatically rotate
36the log each day at Midnight but am looking for a low/no performance impact
37determination that Midnight has occured.
38
39The daylight build used to have an isMidnight function called in the &quot;main
40loop&quot; but this rarely succeeded I guess because if Services happened to be
41idle or very busy at this time, Midnight passed before the isMidnight
42function activated.
43
44Eggdrop has a number of settings for automatic log rotation and after
45investigation it uses
46
47 add_hook(HOOK_SECONDLY, (Function) core_secondly);
48
49with the per second function checking for Midnight among other things.
50
51Having not used this system before I wonder as to what impact on performance
52this may have on services. If anyone knows much about using per second
53routines or what impact it might have on services it would be much
54appreciated.
55
56Mark.
57CTCP Networks.
58
59
60
61</PRE>
62
63<!--endarticle-->
64 <HR>
65 <P><UL>
66 <!--threads-->
67 <LI>Previous message: <A HREF="001502.html">AW: [IRCServices] Wierd message...
68</A></li>
69 <LI>Next message: <A HREF="001504.html">[IRCServices] Rotate Log function - performance
70</A></li>
71 <LI> <B>Messages sorted by:</B>
72 <a href="date.html#1503">[ date ]</a>
73 <a href="thread.html#1503">[ thread ]</a>
74 <a href="subject.html#1503">[ subject ]</a>
75 <a href="author.html#1503">[ author ]</a>
76 </LI>
77 </UL>
78
79</body></html>