Changeset - 3d8590230e7c
[Not reviewed]
0 1 0
Lance Edgar (lance) - 3 years ago 2021-11-28 10:57:32
lance@edbob.org
Include current time in datasync/collectd output
1 file changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/commands/datasync.py
Show inline comments
 
@@ -218,11 +218,15 @@ class DataSync(Subcommand):
 
        from rattail.datasync.util import get_lastrun
 

	
 
        plugin = args.collectd_plugin
 
        now = localtime(self.config)
 
        profiles = load_profiles(self.config)
 
        session = self.app.make_session()
 
        model = self.model
 

	
 
        # current time (sanity check)
 
        now = localtime(self.config)
 
        self.collectd_putval(plugin, 'gauge-current_time',
 
                             now.timestamp(), now=now)
 

	
 
        # iterate watcher profiles
 
        for key in profiles:
 

	
0 comments (0 inline, 0 general)