The circumference of the earth at the equator is 24,901.55 miles (40,075.16 kilometers).
But, if you measure the earth through the poles the circumference is a bit shorter - 24,859.82 miles (40,008 km). This is because the earth is a tad wider than it is tall, giving it a slight bulge at the equator. This shape is known as an ellipsoid or more properly, geoid (earth-like).
Actually, one would have walked twice the distance around the equator... that being just under 25,000 miles (a bit shorter if walked around the poles)...
I was always told that the circumference of the earth at the equator is approx 25,000 miles so I think you may have walked the world once and then done a lap of honour