aboutsummaryrefslogtreecommitdiffstats
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
parent90bd4d127c008d1e5b8c60ef602a00ac8ee98b2f (diff)
downloadsitesummary-cb90658e485c67dba8356a9da9af202942dc0713.tar.gz
sitesummary-cb90658e485c67dba8356a9da9af202942dc0713.tar.bz2
sitesummary-cb90658e485c67dba8356a9da9af202942dc0713.tar.xz
Improve hardware list by avoiding bogus vendor and model settings.
-rw-r--r--SiteSummary.pm4
-rw-r--r--debian/changelog1
2 files changed, 5 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
diff --git a/debian/changelog b/debian/changelog
index e392154..0b3d199 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
sitesummary (0.0.61) UNRELEASED; urgency=low
* Do not check debugfs in Nagios.
+ * Improve hardware list by avoiding bogus vendor and model settings.
-- Petter Reinholdtsen <pere@debian.org> Fri, 19 Feb 2010 10:57:11 +0100