summaryrefslogtreecommitdiff
path: root/scripts/vyatta-cpu-summary.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-cpu-summary.pl')
-rwxr-xr-xscripts/vyatta-cpu-summary.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/vyatta-cpu-summary.pl b/scripts/vyatta-cpu-summary.pl
index 1839a5d..771bc5a 100755
--- a/scripts/vyatta-cpu-summary.pl
+++ b/scripts/vyatta-cpu-summary.pl
@@ -31,7 +31,9 @@ while (<$cpuinfo>) {
}
close $cpuinfo;
-print "CPU ", join( " \n", keys %models ), "\n";
-print "Packages ", scalar keys %packages, "\n";
-print "Cores ", scalar keys %cores, "\n";
-print "Threads ", $cpu, "\n";
+print "Processors ", $cpu, "\n";
+print "Packages ", scalar keys %packages, "\n" if (%packages);
+print "Cores ", scalar keys %cores, "\n" if (%cores);
+
+# Handle any attempt to run different CPU models
+print "Model ", join( " \n", keys %models ), "\n";