ViewPort grid ruler incorrect bug

image

The actual length of the scale does not match the length of the ruler.
What settings have I touched wrong?