From f168483c3ef059abf6a5072ffbdd2c7c3104e39b Mon Sep 17 00:00:00 2001 From: flightlessmango Date: Tue, 28 Nov 2023 05:44:37 +0100 Subject: [PATCH] intel: don't try to get fdinfo if not found --- src/intel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intel.h b/src/intel.h index 4b080986..c0b7d0c3 100644 --- a/src/intel.h +++ b/src/intel.h @@ -36,7 +36,9 @@ class Intel { } void update() { - get_fdinfo(); + if (fdinfo) + get_fdinfo(); + gpu_info = gpu_info_intel; }