fix timestamp format
This commit is contained in:
parent
990a58519d
commit
9c25df1faf
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ class restic_exporter:
|
|||
if 'snapshot_id' in line_data:
|
||||
self.labels["snapshot_id"] = line_data['snapshot_id']
|
||||
file_stats = os.stat(json_file)
|
||||
self.summary['timestamp'] = round(file_stats.st_mtime)
|
||||
self.summary['timestamp'] = file_stats.st_mtime * 1000
|
||||
self._log.debug(f"Summary: {json.dumps(self.summary, indent=2)}")
|
||||
self._log.debug(f"Labels: {self.labels}")
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -2,7 +2,7 @@ import setuptools
|
|||
setuptools.setup(
|
||||
scripts=['restic_exporter/restic_exporter.py'],
|
||||
author="Antonio J. Delgado",
|
||||
version='0.0.3',
|
||||
version='0.0.4',
|
||||
name='restic_exporter',
|
||||
author_email="",
|
||||
url="",
|
||||
|
|
Loading…
Reference in a new issue