Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong spam statistics in dashboard #290
I stumbled upon an interesting bug.
I have 48719 spam comments blocked so far. This is what is in my database.
But the dashboard counter says I have 48 blocked. This little difference made me curious. What is happening here?
But everything is working fine. If I output the counter it says correctly "48.719". Wait!? Why is there a period?
Well because of this line of formatting:
So what happens in the dashboard widget? There is this placeholder
And this placeholder %d means this value is an integer. The integer of "48.719" is "48".
Problem solved! What's the solution? We just need to change this to
PR is coming soon.