mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
10 lines
191 B
Python
10 lines
191 B
Python
import os
|
|
import sys
|
|
|
|
|
|
def total_virtual_memory():
|
|
if sys.platform.startswith("linux"):
|
|
return os.sysconf("SC_PAGE_SIZE") * os.sysconf("SC_PHYS_PAGES")
|
|
else:
|
|
return 0
|