this post was submitted on 29 Jul 2025
22 points (95.8% liked)

Voyager

7123 readers
9 users here now

The official lemmy community for Voyager, an open source, mobile-first client for lemmy.

Download on App Store

Download on Play Store

Use as a Web App

Download on F-Droid

Rules

  1. Be nice.
  2. lemmy.world instance policy

Sponsor development! ๐Ÿ‘‡

Number of sponsors badge

๐Ÿ’™

founded 2 years ago
MODERATORS
 

Just noticed this, but not sure if it's a Piefed or Voyager issue?

top 4 comments
sorted by: hot top controversial new old
[โ€“] logicbomb@lemmy.world 6 points 4 days ago (1 children)

I'm guessing that somebody is keeping a running count rather than calculating the votes directly. So, this would happen if your running count missed a downvote, but didn't miss the person removing their downvote, and also didn't have rails to guard against the value going negative. That would also jive with the person saying it's not Voyager. Maybe you don't see it on the other platforms because they have client-side guard rails for this data.

Normally, this is why keeping a running count is a big no-no in programming, because it easily (often instantly) gets out-of-sync with the actual data. But for a big distributed system, it is an especially challenging problem, and it might simply not be worth it to get the exact right value, and a running count might be good enough.

[โ€“] rimu@piefed.social 5 points 3 days ago

That's it, yep.

With so many votes being cast and such a huge pile of old votes from the past, recalculating the total each time would be a lot of overhead. Also we don't need total accuracy anyway.

[โ€“] sk1nnym1ke@piefed.social 5 points 4 days ago (1 children)
[โ€“] Quicky@piefed.social 1 points 4 days ago