All peak files change when session reopened

Just wanted to ask about a thing that is not a problem, but I was curious why it happens.

I make daily backups of sessions I work on with: rsync -rtv source/ target/

I have noticed that all *.peak files gets changed whenever I open a session even when I don’t make any changes or save the session.

When editing a session and making backups throughout the day, all peakfiles gets copied over and over again.

Is this by design or could it be avoided somehow ? It seems a bit unnecessary, but maybe it has a purpose ?

Odd. Peak files rebuild depends on file modification timestamp. If the .peak file is older or within 6 seconds of the corresponding .wav, the file is re-built.

I looked into the peaks folder of a session I edited last night. All peak files have the same time stamp of the last save:

-rw-r–r-- 1 mika mika 131072 20.11. 00:35 006a0db7057a7e3bb0be93e4d9a1e7e5222f7bbb.peak
-rw-r–r-- 1 mika mika 131072 20.11. 00:35 018fa673538a6c70b5a55fe9c39a967806637bda.peak
-rw-r–r-- 1 mika mika 131072 20.11. 00:35 01bef663e19b5239ddbdb468714e44149722dd1e.peak
-rw-r–r-- 1 mika mika 131072 20.11. 00:35 031136e6ea50979315df5559e2bb31d40879ab8a.peak
-rw-r–r-- 1 mika mika 131072 20.11. 00:35 0343ef8339ec6b9a3f0dadf98d72310c6ef29cdb.peak

I opend the session this morning and closed it without changing anything and now all peak files time stamps changed:

-rw-r–r-- 1 mika mika 131072 20.11. 08:23 006a0db7057a7e3bb0be93e4d9a1e7e5222f7bbb.peak
-rw-r–r-- 1 mika mika 131072 20.11. 08:23 018fa673538a6c70b5a55fe9c39a967806637bda.peak
-rw-r–r-- 1 mika mika 131072 20.11. 08:23 01bef663e19b5239ddbdb468714e44149722dd1e.peak
-rw-r–r-- 1 mika mika 131072 20.11. 08:23 031136e6ea50979315df5559e2bb31d40879ab8a.peak
-rw-r–r-- 1 mika mika 131072 20.11. 08:23 0343ef8339ec6b9a3f0dadf98d72310c6ef29cdb.peak

This is not a big deal, perhaps just unexpected behaviour.

I checked also the wav file timestamps of the session mentioned in my previous post. They range from the time the session was created 2017.11.14 15:34 to last night when I did the last bits of recording 2017.11.21 00:35 There were no timestamps for this morning when I opened and closed the session. It seems the routine that checks the peak file timestamps is not working correctly, should I make a bug report to Mantis ?