mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Fixes (#18751)
* Catch intel GPU stats decode error * Add Vietnamese --------- Co-authored-by: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									c935a76a45
								
							
						
					
					
						commit
						02f75d3b1f
					
				@ -306,11 +306,14 @@ def get_intel_gpu_stats(sriov: bool) -> Optional[dict[str, str]]:
 | 
			
		||||
    if sriov:
 | 
			
		||||
        intel_gpu_top_command += ["-d", "sriov"]
 | 
			
		||||
 | 
			
		||||
    p = sp.run(
 | 
			
		||||
        intel_gpu_top_command,
 | 
			
		||||
        encoding="ascii",
 | 
			
		||||
        capture_output=True,
 | 
			
		||||
    )
 | 
			
		||||
    try:
 | 
			
		||||
        p = sp.run(
 | 
			
		||||
            intel_gpu_top_command,
 | 
			
		||||
            encoding="ascii",
 | 
			
		||||
            capture_output=True,
 | 
			
		||||
        )
 | 
			
		||||
    except UnicodeDecodeError:
 | 
			
		||||
        return None
 | 
			
		||||
 | 
			
		||||
    # timeout has a non-zero returncode when timeout is reached
 | 
			
		||||
    if p.returncode != 124:
 | 
			
		||||
 | 
			
		||||
@ -10,6 +10,7 @@ export const supportedLanguageKeys = [
 | 
			
		||||
  "nb-NO",
 | 
			
		||||
  "zh-CN",
 | 
			
		||||
  "yue-Hant",
 | 
			
		||||
  "vi",
 | 
			
		||||
  "th",
 | 
			
		||||
  "he",
 | 
			
		||||
  "ru",
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user