Today I have accidentally noticed that autoprewarm feature of pg_prewarm used TimestampDifference()'s results in a wrong way.
First, it used *seconds* result from it as a *milliseconds*. It was causing it to make dump file autoprewarm.blocks ~every second with default setting of autoprewarm_interval = 300s.
I had a look at this, and I agree that this is an issue. I also had a look at
the patch 0002, and the patch looks good to me.
In patch 0003 there is a typo:
+/* We have to sleep even after a successfull dump */