Tweak the logic of the check on whether we need to refresh yet.
'true' is not a standard constant in C, doh.