Skip to content

Commit

Permalink
Issue #324: Fix typo in S.M.A.R.T. attributes data table.
Browse files Browse the repository at this point in the history
Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Mar 18, 2019
1 parent 6b276af commit ebe4d39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions deb/openmediavault/debian/changelog
Expand Up @@ -2,6 +2,7 @@ openmediavault (4.1.20-1) stable; urgency=low

* Announce SMB/CIFS shares via WSD, so the are listed in Windows 10.
* Issue #297: Extract upstream version for comparison.
* Issue #324: Fix typo in S.M.A.R.T. attributes data table.

-- Volker Theile <volker.theile@openmediavault.org> Sat, 16 Feb 2019 18:21:28 +0100

Expand Down
Expand Up @@ -218,7 +218,7 @@ class SmartInformation {
"flags" => $matches[3],
"value" => intval($matches[4]),
"worst" => intval($matches[5]),
"treshold" => ("---" == $matches[6]) ?
"threshold" => ("---" == $matches[6]) ?
0 : intval($matches[6]),
"whenfailed" => $matches[7],
"rawvalue" => $matches[8],
Expand All @@ -244,16 +244,16 @@ class SmartInformation {
$attrData['assessment'] = self::SMART_ASSESSMENT_GOOD;
// Always-Fail and Always-Passing thresholds are not relevant
// for our assessment.
if (!(1 <= $attrData['treshold']) && (0xFD >= $attrData['treshold'])) {
if (!(1 <= $attrData['threshold']) && (0xFD >= $attrData['threshold'])) {
$attrData['assessment'] = self::SMART_ASSESSMENT_BAD_STATUS;
return;
}
// See https://wiki.ubuntuusers.de/Festplattenstatus
if ($attrData['value'] <= $attrData['treshold']) {
if ($attrData['value'] <= $attrData['threshold']) {
$attrData['assessment'] = self::SMART_ASSESSMENT_BAD_ATTRIBUTE_NOW;
return;
}
if ($attrData['worst'] <= $attrData['treshold']) {
if ($attrData['worst'] <= $attrData['threshold']) {
$attrData['assessment'] = self::SMART_ASSESSMENT_BAD_ATTRIBUTE_IN_THE_PAST;
return;
}
Expand Down
Expand Up @@ -193,9 +193,9 @@ Ext.define("OMV.module.admin.storage.smart.device.information.Attributes", {
width: 55,
align: "center"
},{
text: _("Treshold"),
dataIndex: "treshold",
stateId: "treshold",
text: _("Threshold"),
dataIndex: "threshold",
stateId: "threshold",
width: 55,
align: "center"
},{
Expand Down Expand Up @@ -254,7 +254,7 @@ Ext.define("OMV.module.admin.storage.smart.device.information.Attributes", {
{ name: "flags", type: "string" },
{ name: "value", type: "int" },
{ name: "worst", type: "int" },
{ name: "treshold", type: "int" },
{ name: "threshold", type: "int" },
{ name: "whenfailed", type: "string" },
{ name: "rawvalue", type: "string" },
{ name: "description", type: "string" },
Expand Down

0 comments on commit ebe4d39

Please sign in to comment.