Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > lvestats > lib
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
bursting | Directory | - | - | |
chart | Directory | - | - | |
commons | Directory | - | - | |
info | Directory | - | - | |
parsers | Directory | - | - | |
__init__.py | File | 219 bytes | May 30 2025 10:30:46. | |
cloudlinux_statistics.py | File | 25470 bytes | May 30 2025 10:30:46. | |
cloudlinux_statsnotifier.py | File | 5214 bytes | May 30 2025 10:30:46. | |
config.py | File | 3280 bytes | May 30 2025 10:30:46. | |
db_functions.py | File | 1487 bytes | May 30 2025 10:30:46. | |
dbengine.py | File | 10826 bytes | May 30 2025 10:30:46. | |
jsonhandler.py | File | 443 bytes | May 30 2025 10:30:46. | |
lve_create_db.py | File | 1926 bytes | May 30 2025 10:30:46. | |
lve_list.py | File | 3432 bytes | May 30 2025 10:30:46. | |
lveinfolib.py | File | 42824 bytes | May 30 2025 10:30:46. | |
lveinfolib_gov.py | File | 13889 bytes | May 30 2025 10:30:46. | |
lvestats_server.py | File | 8666 bytes | May 30 2025 10:30:46. | |
notifications_helper.py | File | 5541 bytes | May 30 2025 10:30:46. | |
server_id.py | File | 5264 bytes | May 30 2025 10:30:46. | |
snapshot.py | File | 7597 bytes | May 30 2025 10:30:46. | |
uidconverter.py | File | 5131 bytes | May 30 2025 10:30:46. | |
ustate.py | File | 8823 bytes | May 30 2025 10:30:46. |
# coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT from sqlalchemy.ext.compiler import compiles from sqlalchemy.sql import expression from sqlalchemy.types import Numeric class greatest(expression.FunctionElement): type = Numeric() name = "greatest" class least(expression.FunctionElement): type = Numeric() name = "least" @compiles(greatest) def default_greatest(element, compiler, **kw): return compiler.visit_function(element) @compiles(least) def default_least(element, compiler, **kw): return compiler.visit_function(element) @compiles(greatest, "sqlite") def case_greatest(element, compiler, **kw): arg1, arg2 = list(element.clauses) return f"max({compiler.process(arg1)}, {compiler.process(arg2)})" @compiles(least, "sqlite") def case_least(element, compiler, **kw): arg1, arg2 = list(element.clauses) return f"min({compiler.process(arg1)}, {compiler.process(arg2)})" class div(expression.FunctionElement): type = Numeric name = "div" @compiles(div) def default_div(element, compiler, **kw): arg1, arg2 = list(element.clauses) return f"{compiler.process(arg1)} / {compiler.process(arg2)}" @compiles(div, "mysql") def case_div(element, compiler, **kw): arg1, arg2 = list(element.clauses) return f"{compiler.process(arg1)} div {compiler.process(arg2)}"
SILENT KILLER Tool