fixed main async issue
This commit is contained in:
@@ -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
@@ -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" }
|
||||
|
||||
Reference in New Issue
Block a user