Skip to content

Commit

Permalink
fix client ready gpus returning bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Spico197 committed Jul 13, 2021
1 parent 010690f commit c953bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watchmen/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def ping(self):
if result["msg"] == ClientStatus.WAITING:
return False, result["available_gpus"]
elif result["msg"] == ClientStatus.READY:
return False, result["available_gpus"]
return True, result["available_gpus"]
elif result["msg"] == ClientStatus.OK:
logger.warning("Status is OK, which has finished requesting GPUs.")
return False, result["available_gpus"]
Expand Down

0 comments on commit c953bb2

Please sign in to comment.