Fixed: use self.start_time in QManager shm

In a previous patch, start_time was introduced to take care of
containerized services.
Unfortunately, a bug has been introduced during this change.

The start_time written in /dev/shm was using the previous start_time
written in the file instead of the new one computed at boot of the
service.

Change-Id: I8a31c0c38b42f333bba92159332e7b3b79d70854
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
This commit is contained in:
Arnaud Morin 2025-02-03 15:30:14 +01:00
parent fe149aefb7
commit d3a4eedb8a

View File

@ -104,7 +104,7 @@ class QManager:
# Write the new counter
with open(self.file_name, 'w') as f:
f.write(str(self.pg) + ':' + str(counter) + ':' +
str(start_time))
str(self.start_time))
return counter
counter = read_from_shm()