]> jfr.im git - irc.git/blob - 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
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
35 but that is beyond the scope of this list) which will automatically rotate
36 the log each day at Midnight but am looking for a low/no performance impact
37 determination that Midnight has occured.
38
39 The daylight build used to have an isMidnight function called in the &quot;main
40 loop&quot; but this rarely succeeded I guess because if Services happened to be
41 idle or very busy at this time, Midnight passed before the isMidnight
42 function activated.
43
44 Eggdrop has a number of settings for automatic log rotation and after
45 investigation it uses
46
47 add_hook(HOOK_SECONDLY, (Function) core_secondly);
48
49 with the per second function checking for Midnight among other things.
50
51 Having not used this system before I wonder as to what impact on performance
52 this may have on services. If anyone knows much about using per second
53 routines or what impact it might have on services it would be much
54 appreciated.
55
56 Mark.
57 CTCP 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>