Example #1
0
    def __init__(self, **kwargs):
        self.total, _ = account.fs_sizes()
        self.free = self.total - query.calculate_usage()
        self.fh = 1
        self.nlinks = kwargs.get('nlinks', False)

        sync_interval = kwargs.get('interval', 0)
        p = Process(target=_autosync, args=(sync_interval, ))
        p.start()
Example #2
0
    def __init__(self, **kwargs):
        self.total, _ = account.fs_sizes()
        self.free = self.total - query.calculate_usage()
        self.fh = 1
        self.nlinks = kwargs.get("nlinks", False)

        sync_interval = kwargs.get("interval", 0)
        p = Process(target=_autosync, args=(sync_interval,))
        p.start()
Example #3
0
 def __init__(self):
     self.total, _ = account.fs_sizes()
     self.free = self.total - query.calculate_usage()
     self.fh = 1
Example #4
0
 def __init__(self):
     self.total, self.free = account.fs_sizes()