def save_statistics(store, start, end, activity_collection): newstat = Stats() newstat.start = start newstat.summary = dict(activity_collection) newstat.free_disk_space = get_workingdir_space()[0] store.add(newstat) if activity_collection: log.debug("save_statistics: Saved statistics %s collected from %s to %s" % (activity_collection, start, end))
def save_statistics(store, start, end, activity_collection): newstat = Stats() newstat.start = start newstat.summary = dict(activity_collection) newstat.free_disk_space = get_workingdir_space()[0] store.add(newstat) if activity_collection: log.debug("save_statistics: Saved statistics %s collected from %s to %s" % (activity_collection, start, end))
def save_statistics(store, start, end, activity_collection): newstat = Stats() if activity_collection: log.debug("save_statistics: Saved statistics %s collected from %s to %s" % (activity_collection, start, end)) newstat.start = start newstat.summary = dict(activity_collection) newstat.free_disk_space = ResourceChecker.get_free_space() store.add(newstat)
def save_statistics(store, start, end, activity_collection): newstat = Stats() newstat.start = start newstat.summary = dict(activity_collection) newstat.free_disk_space = get_workingdir_space()[0] store.add(newstat)