Article View: news.software.nntp
Article #79650Some thoughts on times
From: John F. Morse
Date: Sun, 16 Nov 2008 16:40
Date: Sun, 16 Nov 2008 16:40
73 lines
4585 bytes
4585 bytes
Several years ago when I first configured Inn, one of the changes I made to the defaults was to move the daily report job from 0300 to 0000, which is the start of most people's days. I figured the 0300 may have been someone's idea of the least-busy time for a news server, but I wonder if they considered peering from across the globe, or even the next time zone? The daily report sends a report for "today" with a subject showing "tomorrow" which I presume is because "tomorrow" is after 24:00:00 "today." IOW, today is Sunday, November 16, and the daily report I received after midnight this morning, is actually the report for Saturday, November 15's activities, but it has the subject: "Daily Usenet report for Sun Nov 16 00:00:02 CST 2008." It should have a subject of: "Daily Usenet report for Sat Nov 15 2008" and leave off the time and TZ. Even better, it should report the date in a sortable format such as "2008-11-15" and drop the day of week, or put it after the date. Neither when I receive it, nor when it is sent, are important. What is important is the period it is reporting. I thought a work-around would be to change /etc/cron.d/inn2 from 0 0 * * * news test -x /usr/lib/news/bin/news.daily && news.daily expireover lowmark delayrm to 59 59 * * * news test -x /usr/lib/news/bin/news.daily && news.daily expireover lowmark delayrm However, I don't know if the variable slop created by the time required to do these jobs would fall on the correct day or not. Plus anything from 23:59:00 until 24:00:00 would not be included in the proper day's report. N.B. The start of a day is 00:00:00, and is the same instant in time as the end of the preceding day (24:00:00) and not 23:59:59. Consider the following: Incoming articles: Date Nov 15 00:00:04 - 00:59:59 Nov 15 01:00:00 - 01:59:59 Nov 15 02:00:00 - 02:59:59 Nov 15 03:00:00 - 03:59:59 Nov 15 04:00:00 - 04:59:59 Nov 15 05:00:00 - 05:59:59 Nov 15 06:00:00 - 06:59:59 Nov 15 07:00:00 - 07:59:59 Nov 15 08:00:00 - 08:59:59 Nov 15 09:00:00 - 09:59:59 Nov 15 10:00:00 - 10:59:59 Nov 15 11:00:00 - 11:59:59 Nov 15 12:00:00 - 12:59:59 Nov 15 13:00:00 - 13:59:59 Nov 15 14:00:00 - 14:59:59 Nov 15 15:00:00 - 15:59:59 Nov 15 16:00:00 - 16:59:59 Nov 15 17:00:00 - 17:59:59 Nov 15 18:00:00 - 18:59:59 Nov 15 19:00:00 - 19:59:59 Nov 15 20:00:00 - 20:59:59 Nov 15 21:00:00 - 21:59:59 Nov 15 22:00:00 - 22:59:59 Nov 15 23:00:00 - 00:00:03 TOTAL: 23:59:59 This shows all of the starting times for each hour correctly (HH:00:00) except for the first one, which is four minutes into the hour due to the expiry jobs. The ending times are all correct (HH:59:59) except for the last one, which is three minutes into the next hour -- and worse, the next day. Then the total is really goofy. It should be 24:00:00 every day that the server ran and had any incoming articles every hour. Is there something that could be done to correct these problems? Perhaps picking off the actual correct date and time when the cron job starts, then using that data to create the message subject. Getting those incoming hourly totals correct might take more work. -- John No Microsoft, Apple, AT&T, Intel, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID:
<gfpide$p3n$1@optima7.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.k-dsl.de!news.eternal-september.org!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gfpide$p3n$1@optima7.xanadu-bbs.net> Subject: Some thoughts on times Date: Sun, 16 Nov 2008 10:40:12 -0600 From: "John F. Morse" <xanadu.bbs@example.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!news.k-dsl.de!news.eternal-september.org!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 73 Reply-To: dont.bother NNTP-Posting-Host: wintergreen18.xanadu-bbs.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1226853614 25719 192.168.89.180 (16 Nov 2008 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sun, 16 Nov 2008 16:40:14 +0000 (UTC) User-Agent: Thunderbird 1.5.0.14ubu (X11/20080925)