diff --git a/src/Resources/Resources.vala b/src/Resources/Resources.vala index 24a30b75..20cc6a6b 100644 --- a/src/Resources/Resources.vala +++ b/src/Resources/Resources.vala @@ -86,7 +86,7 @@ public class Monitor.Resources : Object { swap_total = swap.total, network_up = network.bytes_out, network_down = network.bytes_in, - gpu_percentage = gpu.percentage + gpu_percentage = gpu != null ? gpu.percentage : 0 }; } }