Added support for frequency parameter in snapshot
@@ -60,12 +60,11 @@ class CreateSnapshot(BaseSolver):
def snap_name(self, ts=None):
if ts is None:
ts = self.ts
-
return "%s.%06d" % (self.filename, ts)
def run(self, online=True):
self.ts = self.data.ts
-
+ if self.ts % self.settings['frequency'].value == 0:
# clean older files
if self.settings['keep'].value:
self.delete_previous_snapshots()
