lobsters/lobsters

Stats extrapolation is bad on the 1st of the month

開放

#1,888 建立於 2026年2月1日

 (1 則留言) (0 個反應) (0 位負責人)Ruby (961 個分叉)user submission
buggood first issue

倉庫指標

星標
 (4,680 顆星)
PR 合併指標
 (平均合併 7天 4小時) (30 天內合併 20 個 PR)

描述

https://lobste.rs/stats

The charts do naive extrapolation for the current month, multiplying "activity so far" out to cover the rest of the month. The charts also run just after midnight. So if there is any activity right before a chart is generated, the extrapolated value is ridiculous.

An easy fix would be to clamp to the highest seen value, but maybe someone would like to implement smarter extrapolation? Worth noting that, like most social sites, our traffic has a strong weekly shape where Monday is the most active day, it declines over the week to be ~50% of Monday on either weekend day.

貢獻者指南