aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhardware-models16
1 files changed, 8 insertions, 8 deletions
diff --git a/hardware-models b/hardware-models
index 3cb857d..ebdc390 100755
--- a/hardware-models
+++ b/hardware-models
@@ -63,14 +63,14 @@ sub print_summary {
printf " %s %s/%s %s\n", $hostname, $vendor, $model, $hostid;
}
}
- for my $model (sort keys %{$models{$vendor}}) {
- printf(" %-23s %5d\n", $model, $models{$vendor}{$model});
- if (exists $opts{l}) {
- for my $hostid (sort @{$modelmap{$vendor}{$model}}) {
- my $hostname = get_hostname($hostid);
- my ($vendor, $model, undef) = get_hardware_info($hostid);
- printf " %s %s/%s %s\n", $hostname, $vendor, $model, $hostid;
- }
+ }
+ for my $model (sort keys %{$models{$vendor}}) {
+ printf(" %-23s %5d\n", $model, $models{$vendor}{$model});
+ if (exists $opts{l}) {
+ for my $hostid (sort @{$modelmap{$vendor}{$model}}) {
+ my $hostname = get_hostname($hostid);
+ my ($vendor, $model, undef) = get_hardware_info($hostid);
+ printf " %s %s/%s %s\n", $hostname, $vendor, $model, $hostid;
}
}
}