aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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