fixed main async issue

This commit is contained in:
2025-03-04 10:37:57 +01:00
parent 943c9a76ce
commit bed3fe62aa
2 changed files with 9 additions and 3 deletions
@@ -8,7 +8,13 @@ from cpu_governor_auto_adjust.governor import GovernorControl
from cpu_governor_auto_adjust.schedule import TriggerScheduler
async def main() -> None:
def main() -> None:
asyncio.run(_main())
async def _main() -> None:
basepath = Path(__file__).parent.resolve()
config = Config(basepath)
log = getLogger('main', loglevel=config.loglevel.upper())
@@ -25,4 +31,4 @@ async def main() -> None:
if __name__ == "__main__":
asyncio.run(main())
main()
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "cpu_governor_auto_adjust"
version = "0.1.5"
version = "0.1.6"
description = "This application has been developed to automatically change cpu governor based on certain triggers."
authors = [
{ name = "Martin Reurekas", email = "martin@semrks.nl" }