Skip to content

Commit

Permalink
Merge pull request #91 from ajdecon/logical-or
Browse files Browse the repository at this point in the history
Change "||" to "or" to avoid syntax error
  • Loading branch information
jbuchbinder committed Oct 2, 2012
2 parents 280e538 + 3807375 commit 4352af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gpu/nvidia/python_modules/nvidia.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def gpu_device_handler(name):
except NVMLError, nvmlError:
if NVML_ERROR_NOT_SUPPORTED == nvmlError.value:
return 'N/A'
elif (metric == 'perf_state' || metric == 'performance_state'):
elif (metric == 'perf_state' or metric == 'performance_state'):
state = nvmlDeviceGetPerformanceState(gpu_device)
try:
int(state)
Expand Down

0 comments on commit 4352af0

Please sign in to comment.