Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Strange Reputation Display

by kcott (Bishop)
on May 28, 2020 at 06:44 UTC ( #11117374=monkdiscuss: print w/replies, xml ) Need Help??

In "Re^4: one liner error" I see:

Reputation: -12 (+-2 -10)

The "+-2" seemed very strange and I'm pretty sure I haven't seen that in the past. I reloaded that page a couple of times but the "+-2" persisted.

I checked another from today's Worst Nodes. In "Re^2: delete single user" I see:

Reputation: -12 (+0 -12)

That looks normal. Any ideas on that first one with "+-2"?

— Ken

Replies are listed 'Best First'.
Re: Strange Reputation Display
by Co-Rion (Monk) on May 28, 2020 at 07:24 UTC

    Thank you for mentioning this! This should be corrected now.

    A bit of background information:

    While Perlmonks stores the votes on a node in a separate table, it also caches the vote count on each node directly. This of course means that the entries in the votes table can go out of sync with the cached vote count on the node. There is Call for a Recount (gods only] (to be found via Gods' Arcade, also gods only) to update the cached vote count for a single node or multiple nodes. One needs to uncheck the noupdate checkbox to actualy perform the recount.

      G'day Co-Rion,

      Thanks for fixing and the explanation.

      Presumably the corrected values will flow through to Worst Nodes in due course.

      — Ken

Re: Strange Reputation Display
by LanX (Cardinal) on May 28, 2020 at 08:20 UTC
    I studied a similar problem some time ago. Can't find it in the archives right now.

    IIRC the plus + is caused by a fractal vote value of .5 such that a regex expecting an integer can't match.

    There is a double counting in the model which requires dividing by 2, to calculate up and down votes.

    Something gets out on sync here and one of the input values had a lost entry.

    (IIRC those inputs are "total votes" and "reputation")

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

        G'day Rolf,

        Well, it just gets weirder. :-)

        Thanks for digging up the link.

        — Ken

Re: Strange Reputation Display
by soonix (Canon) on May 28, 2020 at 07:10 UTC
    Can confirm. Now "-13 (+-2 -11)". Should have voted ++ to see if it's becoming "+-3" or "+-1" ...

    perhaps an integer overflow, and it should be something like 32766… ;-)

      G'day soonix,

      Thanks for confirmation; however, I'm now seeing

      Reputation: -3 (+3 -6)

      I actually checked it three times. Confirming the link: "Re^4: one liner error" (#11117350).

      Perhaps someone is actively working on a fix.

      — Ken

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://11117374]
Approved by marto
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2021-04-12 13:35 GMT
Find Nodes?
    Voting Booth?

    No recent polls found