🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46384

Re: Diablo spool

#46384
From: Joe Greco
Date: Thu, 11 May 2000 00:00
39 lines
2175 bytes
In news.software.nntp article <1r8zxhb7ez.fsf@haey.ifi.uio.no>, Kjetil Torgrim Homme <kjetilho@haey.ifi.uio.no> wrote:
:[Joe Greco]
:
:>   If you need a correct and current snapshot, holler and it will
:>   find its way to you.
:
:The 20000503-03 snapshot doesn't look correct to me.
:
:    void
:    LoadSlotDir(time_t t, int forceCreate)
:    {
:        uint32 gmt = t / 60;
:
:        gmt = gmt - gmt % 10;
:
:Now gmt will always end in 0, i.e. be divisible by 10.
:
:        if (LSTime == 0 || gmt != LSTime) {
:            char path[256];
:
:            snprintf(path, sizeof(path), "%s", PatExpand(SpoolHomePat));
:            if (DiabloSpoolDirs > 0) {
:                    snprintf(path + strlen(path), sizeof(path) - strlen(path),
:			     "/N.%02x/D.%08x",
:			     (gmt / 2) % DiabloSpoolDirs, gmt);
:
:(gmt / 2) will always be divisible by 5.  If you happen to have 5
:DiabloSpoolDirs, you will _only_ use N.00.  The correct fix is to
:divide by 10.  (You need to do this adjustment all over the place, you
:can find them with fgrep "N.%02".)

I think there's something wrong with this idea.  I looked sorta carefully
at all of this when I was trying to figure out my initial mistake, and it
was more complex than that.  Unfortunately, I don't have the time to sit
down and wrap my head around this for a few hours right now.

... JG

Technical Details
Message-ID: <391af4e1$0$73587@news.execpc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <957925631.861148@news.netscum.dk> <3918dfe1$0$88605@news.execpc.com> <1r8zxhb7ez.fsf@haey.ifi.uio.no>

Show Full Headers
Complete Article Headers
Message-ID: <391af4e1$0$73587@news.execpc.com>
Subject: Re: Diablo spool
Date: Thu, 11 May 2000 00:00:00 +0000
From: jgreco@ns.sol.net (Joe Greco)
References: <957925631.861148@news.netscum.dk> <3918dfe1$0$88605@news.execpc.com> <1r8zxhb7ez.fsf@haey.ifi.uio.no>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 622204742
Sender: jgreco@earth.execpc.com
X-Trace: 0RW8S?BXNaBI5[332>a9YKbfNiaEHUgJGRYcgIRLSUEMSo2;Q2;[\<E<OBg@Rk3[NA=2TJP5mJl:CGhaMU<hZ^NGF4FfQ?Mh6UM
Organization: sol.net Network Services - Milwaukee, WI
Newsgroups: news.software.nntp
X-Complaints-To: abuse@execpc.com