Use escapse string in get_intel_gpu_stats

````
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:
Martin Weinelt 2024-08-31 03:01:03 +02:00
parent 6a0b5c3a3f
commit 206dcb3941
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -296,7 +296,7 @@ def get_intel_gpu_stats() -> dict[str, str]:
# video is used for vaapi
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:])
single = packet.get("busy", 0.0)
video.append(float(single))