mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-11-24 20:04:30 +01:00
Use escapse string in get_intel_gpu_stats (#13452)
````
frigate/util/services.py:299: SyntaxWarning: invalid escape sequence '\d'
for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
````
This commit is contained in:
parent
921c9de241
commit
ecaba82c9d
@ -296,7 +296,7 @@ def get_intel_gpu_stats() -> dict[str, str]:
|
|||||||
|
|
||||||
# video is used for vaapi
|
# video is used for vaapi
|
||||||
video = []
|
video = []
|
||||||
for result in re.findall('"Video/\d":{[a-z":\d.,%]+}', reading):
|
for result in re.findall(r'"Video/\d":{[a-z":\d.,%]+}', reading):
|
||||||
packet = json.loads(result[10:])
|
packet = json.loads(result[10:])
|
||||||
single = packet.get("busy", 0.0)
|
single = packet.get("busy", 0.0)
|
||||||
video.append(float(single))
|
video.append(float(single))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user