kolibri/utils/pskolibri/_pswindows.py
def virtual_memory():
    """System virtual memory as a namedtuple."""
    meminfo = MEMORYSTATUSEX()
    ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(meminfo))
    total = meminfo.ullTotalPhys
    avail = meminfo.ullAvailPhys
    used = total - avail

    return svmem(total, used)
System virtual memory as a namedtuple.
System virtual memory as a namedtuple.
System virtual memory as a namedtuple .
def virtual_memory():
    meminfo = MEMORYSTATUSEX()
    ctypes.windll.kernel32.GlobalMemoryStatusEx(ctypes.byref(meminfo))
    total = meminfo.ullTotalPhys
    avail = meminfo.ullAvailPhys
    used = total - avail
    return svmem(total, used)
def virtual_memory ( ) : meminfo = MEMORYSTATUSEX ( ) ctypes . windll . kernel32 . GlobalMemoryStatusEx ( ctypes . byref ( meminfo ) ) total = meminfo . ullTotalPhys avail = meminfo . ullAvailPhys used = total - avail return svmem ( total , used )
System virtual memory as a namedtuple.
System virtual memory as a namedtuple .
"""System virtual memory as a namedtuple."""