Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Reputation: -4 (+-0.5 -3.5)

by dorko (Prior)
on Jul 21, 2019 at 00:59 UTC ( #11103087=note: print w/replies, xml ) Need Help??


in reply to Reputation: -4 (+-0.5 -3.5)

While a part of me knows this is troublesome, the larger bit of me thinks we should keep it, a la "stumbit."

Cheers,

Brent

-- Yeah, I'm a Delt.

Replies are listed 'Best First'.
Re^2: Reputation: -4 (+-0.5 -3.5)
by RMGir (Prior) on Jul 21, 2019 at 12:17 UTC
    > the larger bit of me thinks we should keep it

    I agree, but I'm really curious to know HOW it's happening. Aren't votes integers? Hard to imagine an int update race the results in a float conversion :)


    Mike
      > Aren't votes integers?

      They most likely are.

      But before displaying them calculations happen :

      from node_rep_line

      14: my $up = ($N->{reputation} + $N->{votescast}) / 2; 15: my $down = $up - $N->{reputation};

      Looks like reputation was -4 and votescast 3 at the moment of my observation.

      Hence one votecast got lost ...

      update

      I seem to remember reading about a "multiple vote feature" (for janitors?) announced some month ago.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

      ) @PmDevs I somehow "reverse engineered" this bug, because I was expecting a division by two. Search internal code for all code snippets with "vote" and narrowing the result to / 2 led me to this part.

        Thanks, that explains it nicely!

        It's interesting that it's not a transient issue: the votes are still fractional, so an update to votescast was likely permanently lost rather than you just seeing "torn values".

        Reputation: -8 (+1.5 -9.5)

        Mike
Re^2: Reputation: -4 (+-0.5 -3.5)
by LanX (Cardinal) on Jul 21, 2019 at 02:53 UTC
    > me thinks we should keep it, a la "stumbit."

    sexisgreat! ;-)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11103087]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2020-10-28 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (259 votes). Check out past polls.

    Notices?