Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lromor committed Aug 25, 2022
1 parent 3c304f4 commit be7ce4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts/metrics/system_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import types
from builtins import str
import psutil
import pynvml
from ts.metrics.dimension import Dimension
from ts.metrics.metric import Metric
import pynvml

system_metrics = []
dimension = [Dimension('Level', 'Host')]
Expand Down Expand Up @@ -73,7 +73,7 @@ def gpu_utilization(num_of_gpu):
try:
statuses = list_gpus.device_statuses()
except pynvml.nvml.NVMLError_NotSupported:
logging.warning("gpu device monitoring not supported")
logging.warning('gpu device monitoring not supported')
statuses = []

for idx, status in enumerate(statuses):
Expand Down

0 comments on commit be7ce4d

Please sign in to comment.