summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/system/irq-affinity.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/system/irq-affinity.pl b/scripts/system/irq-affinity.pl
index 6112de3e..d12b7ed0 100755
--- a/scripts/system/irq-affinity.pl
+++ b/scripts/system/irq-affinity.pl
@@ -74,8 +74,8 @@ sub irqinfo {
# Determine number of cpus and cores
sub cpuinfo {
- my ( $cpus, $cores );
- my $sockets = 0;
+ my ($cpus, $cores);
+ my $sockets = 1;
open( my $f, '<', "/proc/cpuinfo" )
or die "Can't read /proc/cpuinfo";