• sexy_peach@feddit.de
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    I think the “x users online” thing in lemmy is bugged as hell. It’s never correct for feddit.de, mostly waaaaaay higher than could be correct.

    • nutomic@lemmy.ml
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 years ago

      Its the number of open websocket connections, so it also counts users who are not logged in or individual tabs which are opened by the same user.

      • sexy_peach@feddit.de
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 years ago

        Ah, interesting, thanks. How long does such a websocket connection last, if a user leaves the website?

        • nutomic@lemmy.ml
          link
          fedilink
          English
          arrow-up
          6
          ·
          2 years ago

          I think it should be closed immediately, at least in theory. Anyway we are going to remove websocket in the next major version, then that counter will probably also be gone.

    • Dessalines@lemmy.ml
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      Yep. We have really good queries for activity, which for us means “a local person who has posted / commented in the last X timeframe”.

      These are on the site and community sidebars.

      Unlike reddit, we don’t gain anything by inflating our numbers, so when it says this community has 84 users / day, that means 84 unique real people have posted / commented in the last day.

      • Magusbear@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Oh, I didn’t realize it’s only users who have posted/commented. That explains the numbers.

        • Dessalines@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          2 years ago

          For sure… one reason I use that, is because there are a lot of dead reddit communities with massive user counts. Because communities rise and fall, total user counts aren’t really a good way to gauge activity.

          • Magusbear@lemmy.ml
            link
            fedilink
            arrow-up
            3
            ·
            2 years ago

            Good approach, yea. Stumbling over a subreddit with thousands of users only to realize that nothing’s ever posted is really annoying.