Did I find the right examples for you? yes no

All Samples(9)  |  Call(9)  |  Derive(0)  |  Import(0)
psutil.virtmem_usage is deprecated; use psutil.swap_memory() instead

                @wraps(fun)
        def inner(*args, **kwargs):
            warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
            return fun(*args, **kwargs)
        


src/p/y/pyriemann-HEAD/examples/riemann_health.py   pyriemann(Download)
def memory(warning = 0.85, critical=0.95):
    pm = psutil.phymem_usage()
    vm = psutil.virtmem_usage()
    sf = sv = "ok"
    ff = pm.percent / 100.0

src/p/g/pg_activity-HEAD/pgactivity/Data.py   pg_activity(Download)
            buffers = getattr(psutil, 'phymem_buffers', lambda: 0)()
            cached = getattr(psutil, 'cached_phymem', lambda: 0)()
            vmem = psutil.virtmem_usage()
 
        mem_used = phymem.total - (phymem.free + buffers + cached)

src/g/l/Glances-1.7.6/glances/glances.py   Glances(Download)
            # Swap
            if hasattr(psutil, 'virtmem_usage'):
                virtmem = psutil.virtmem_usage()
                self.memswap = {'total': virtmem.total,
                                'used': virtmem.used,

src/g/l/glances-HEAD/glances/glances.py   glances(Download)
            # Swap
            if hasattr(psutil, 'virtmem_usage'):
                virtmem = psutil.virtmem_usage()
                self.memswap = {'total': virtmem.total,
                                'used': virtmem.used,

src/r/i/rigcollector-0.1.0/rigcollector/collector.py   rigcollector(Download)
    def get_mem(self):
        data = psutil.virtmem_usage()
        return dict(percent=data.percent, used=int(data.used), total=int(data.total))
 
    def get_load(self):

src/s/a/sauron-0.1.2/sauron/metrics/SystemMetric.py   sauron(Download)
    def values(self):
        try:
            phys = psutil.phymem_usage()
            virt = psutil.virtmem_usage()
            return {'results': {

src/s/a/sauron-HEAD/sauron/metrics/SystemMetric.py   sauron(Download)
        try:
            phys = psutil.phymem_usage()
            virt = psutil.virtmem_usage()
            return {'results': {
                    'physical': (phys.percent, 'Percent'),

src/d/j/django-bigbrother-0.4.2/bigbrother/core.py   django-bigbrother(Download)
    def get_val(self):
        import psutil
        return psutil.virtmem_usage()[1] / (1024 * 1024)
 
 

src/d/j/django-bigbrother-HEAD/bigbrother/core.py   django-bigbrother(Download)
    def get_val(self):
        import psutil
        return psutil.virtmem_usage()[1] / (1024 * 1024)