mirror of
https://github.com/brockar/NVML-GPU-Control.git
synced 2026-01-11 15:01:01 -03:00
Just improving some code comments and some formatting
This commit is contained in:
@@ -15,9 +15,9 @@ def main():
|
||||
return
|
||||
|
||||
try:
|
||||
|
||||
# Verify driver version
|
||||
try:
|
||||
|
||||
# Call nvml init and shutdown as an exception (special case), because I need it to restart in a loop later
|
||||
nvmlInit()
|
||||
main_funcs.check_driver_version(nvmlSystemGetDriverVersion())
|
||||
@@ -29,6 +29,7 @@ def main():
|
||||
while(True):
|
||||
try:
|
||||
# Start nvml (or again in case of errors)
|
||||
# Useful to keep the process running during driver updates
|
||||
nvmlInit()
|
||||
|
||||
match config.action:
|
||||
|
||||
@@ -145,7 +145,7 @@ def parse_cmd_args(args):
|
||||
raise InvalidAction("The action passed as argument is incorrect")
|
||||
|
||||
|
||||
# You can safely ignore the actions here
|
||||
# You can safely ignore the action here
|
||||
i = 2
|
||||
while(i < len(args)):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user