bugfix: convert metadata refresh timeout to milliseconds in comparison

This is a bug which seems to cause metadata to be refreshed once every week, instead of the intended 5 minutes.