Skip to content
Snippets Groups Projects
Commit 01b921a6 authored by ballen4705's avatar ballen4705
Browse files

If Attribute 9 stored in minutes, print as Xh+Ym not X h + Y m. This keeps

the number of fields fixed.


git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@447 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent bae15e5a
No related branches found
No related tags found
No related merge requests found
CHANGELOG for smartmontools CHANGELOG for smartmontools
$Id: CHANGELOG,v 1.85 2003/01/13 12:49:06 ballen4705 Exp $ $Id: CHANGELOG,v 1.86 2003/01/14 20:04:03 ballen4705 Exp $
Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
...@@ -33,6 +33,9 @@ NOTES FOR FUTURE RELEASES: see TODO file. ...@@ -33,6 +33,9 @@ NOTES FOR FUTURE RELEASES: see TODO file.
CURRENT RELEASE (see VERSION file in this directory): CURRENT RELEASE (see VERSION file in this directory):
[BA] Modified printing format for 9,minutes to read
Xh+Ym not X h + Y m, so that fields are fixed width.
[BA] Added Attribute 240 "head flying hours" [BA] Added Attribute 240 "head flying hours"
smartmontools-5.1.1 smartmontools-5.1.1
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "smartctl.h" #include "smartctl.h"
#include "extern.h" #include "extern.h"
const char *CVSid2="$Id: ataprint.c,v 1.53 2003/01/12 10:30:53 ballen4705 Exp $" const char *CVSid2="$Id: ataprint.c,v 1.54 2003/01/14 20:04:07 ballen4705 Exp $"
CVSID1 CVSID2 CVSID3 CVSID6; CVSID1 CVSID2 CVSID3 CVSID6;
// for passing global control variables // for passing global control variables
...@@ -442,7 +442,7 @@ void PrintSmartAttribWithThres (struct ata_smart_values *data, ...@@ -442,7 +442,7 @@ void PrintSmartAttribWithThres (struct ata_smart_values *data,
// minutes // minutes
long long tmp1=rawvalue/60; long long tmp1=rawvalue/60;
long long tmp2=rawvalue%60; long long tmp2=rawvalue%60;
pout("%llu h + %2llu m\n", tmp1, tmp2); pout("%lluh+%02llum\n", tmp1, tmp2);
} }
else else
// hours // hours
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "smartctl.h" #include "smartctl.h"
#include "extern.h" #include "extern.h"
const char *CVSid2="$Id: ataprint.cpp,v 1.53 2003/01/12 10:30:53 ballen4705 Exp $" const char *CVSid2="$Id: ataprint.cpp,v 1.54 2003/01/14 20:04:07 ballen4705 Exp $"
CVSID1 CVSID2 CVSID3 CVSID6; CVSID1 CVSID2 CVSID3 CVSID6;
// for passing global control variables // for passing global control variables
...@@ -442,7 +442,7 @@ void PrintSmartAttribWithThres (struct ata_smart_values *data, ...@@ -442,7 +442,7 @@ void PrintSmartAttribWithThres (struct ata_smart_values *data,
// minutes // minutes
long long tmp1=rawvalue/60; long long tmp1=rawvalue/60;
long long tmp2=rawvalue%60; long long tmp2=rawvalue%60;
pout("%llu h + %2llu m\n", tmp1, tmp2); pout("%lluh+%02llum\n", tmp1, tmp2);
} }
else else
// hours // hours
......
\# Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> \# Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
\# \#
\# $Id: smartctl.8,v 1.43 2003/01/06 00:54:16 ballen4705 Exp $ \# $Id: smartctl.8,v 1.44 2003/01/14 20:04:05 ballen4705 Exp $
\# \#
\# This program is free software; you can redistribute it and/or modify it \# This program is free software; you can redistribute it and/or modify it
\# under the terms of the GNU General Public License as published by the Free \# under the terms of the GNU General Public License as published by the Free
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
\# Research Center), Jack Baskin School of Engineering, University of \# Research Center), Jack Baskin School of Engineering, University of
\# California, Santa Cruz. http://ssrc.soe.ucsc.edu/ \# California, Santa Cruz. http://ssrc.soe.ucsc.edu/
\# \#
.TH SMARTCTL 8 "$Date: 2003/01/06 00:54:16 $" "smartmontools-5.1" .TH SMARTCTL 8 "$Date: 2003/01/14 20:04:05 $" "smartmontools-5.1"
.SH NAME .SH NAME
smartctl \- S.M.A.R.T. control and monitor utility smartctl \- S.M.A.R.T. control and monitor utility
.SH SYNOPSIS .SH SYNOPSIS
...@@ -419,8 +419,10 @@ arguments to this option are: ...@@ -419,8 +419,10 @@ arguments to this option are:
then exits. then exits.
.I 9,minutes .I 9,minutes
\- Raw Attribute number 9 is power-on time in minutes. It will be \- Raw Attribute number 9 is power-on time in minutes. Its raw value
displayed in the form 'X h + Y m', where X is hours and Y is minutes. will be displayed in the form 'Xh+Ym'. Here X is hours, and Y is
minutes in the range 0-59 inclusive. Y is always printed with two
digits, for example \'06' or \'31' or '00'.
.I 9,temp .I 9,temp
\- Raw Attribute number 9 is the disk temperature in Celsius. \- Raw Attribute number 9 is the disk temperature in Celsius.
...@@ -676,4 +678,4 @@ Please let us know if there is an on\-line source for this document. ...@@ -676,4 +678,4 @@ Please let us know if there is an on\-line source for this document.
.SH .SH
CVS ID OF THIS PAGE: CVS ID OF THIS PAGE:
$Id: smartctl.8,v 1.43 2003/01/06 00:54:16 ballen4705 Exp $ $Id: smartctl.8,v 1.44 2003/01/14 20:04:05 ballen4705 Exp $
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment