File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -280,14 +280,19 @@ public class About.HardwareView : Gtk.Box {
280280 result + = " \n " ;
281281 }
282282
283+ string cpu_name = _(" Unknown Processor" );
284+ if (cpu. key. length > 0 ) {
285+ cpu_name = clean_name (cpu. key);
286+ }
287+
283288 if (cpu. @value == 2 ) {
284- result + = _(" Dual-Core %s " ). printf (clean_name (cpu . key) );
289+ result + = _(" Dual-Core %s " ). printf (cpu_name );
285290 } else if (cpu. @value == 4 ) {
286- result + = _(" Quad-Core %s " ). printf (clean_name (cpu . key) );
291+ result + = _(" Quad-Core %s " ). printf (cpu_name );
287292 } else if (cpu. @value == 6 ) {
288- result + = _(" Hexa-Core %s " ). printf (clean_name (cpu . key) );
293+ result + = _(" Hexa-Core %s " ). printf (cpu_name );
289294 } else {
290- result + = " %u \u 00D7 %s " . printf (cpu. @value , clean_name (cpu . key) );
295+ result + = " %u \u 00D7 %s " . printf (cpu. @value , cpu_name );
291296 }
292297 }
293298
You can’t perform that action at this time.
0 commit comments