Fix core vs cores

This commit is contained in:
Jamie Cameron
2023-11-27 17:17:33 -08:00
parent 0c6351d3ab
commit 3b65ec28ed
2 changed files with 4 additions and 1 deletions

View File

@@ -19,7 +19,8 @@ if (defined(&get_cpu_info)) {
$cpu .= "($c[3] MHz)\n";
}
if ($c[7]) {
$cpu .= ", $c[7] cores\n";
$cpu .= ", ".&text($c[7] > 1 ? 'index_cores' :
'index_core', $c[7]);
}
print &ui_table_row($text{'index_cpuname'}, $cpu);
}

View File

@@ -17,6 +17,8 @@ index_loadname=CPU load averages:
index_loadnums=$1 (1 mins) , $2 (5 mins) , $3 (15 mins)
index_cpuname=CPU type:
index_inzone=In zone $1
index_core=$1 core
index_cores=$1 cores
pid=ID
owner=Owner