aboutsummaryrefslogtreecommitdiffstats
path: root/SiteSummary.pm
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2010-02-19 10:41:16 +0000
committerPetter Reinholdtsen <pere@hungry.com>2010-02-19 10:41:16 +0000
commitcb90658e485c67dba8356a9da9af202942dc0713 (patch)
tree3dd685b7b4d4d614f3cb82e47c6a1b53445ca855 /SiteSummary.pm
parent90bd4d127c008d1e5b8c60ef602a00ac8ee98b2f (diff)
downloadsitesummary-cb90658e485c67dba8356a9da9af202942dc0713.tar.gz
sitesummary-cb90658e485c67dba8356a9da9af202942dc0713.tar.bz2
sitesummary-cb90658e485c67dba8356a9da9af202942dc0713.tar.xz
Improve hardware list by avoiding bogus vendor and model settings.
Diffstat (limited to 'SiteSummary.pm')
-rw-r--r--SiteSummary.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/SiteSummary.pm b/SiteSummary.pm
index 645e855..774b119 100644
--- a/SiteSummary.pm
+++ b/SiteSummary.pm
@@ -283,6 +283,10 @@ sub get_hardware_info {
}
close(FILE);
+ # Avoid returning bogus vendor and model
+ undef $vendor if ("Not Specified" eq $vendor);
+ undef $model if ("Not Specified" eq $model);
+
# Append version string to get for example the thinkpad model
# name, but ignore bogus entries.
$model = "$model $version" if ($version