mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 22:55:55 +03:00
Merge commit '31ed2db'
This commit is contained in:
commit
9e1b86413a
17
.github/ISSUE_TEMPLATE.md
vendored
Normal file
17
.github/ISSUE_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
### Resume
|
||||||
|
|
||||||
|
| Q | A
|
||||||
|
| ------------- | ---
|
||||||
|
| Bug? | yes/no
|
||||||
|
| New feature? | yes/no
|
||||||
|
|
||||||
|
### Description
|
||||||
|
|
||||||
|
|
||||||
|
### Versions
|
||||||
|
|
||||||
|
<!-- You can use `glances -V` to retrieve Glances and PSutil versions -->
|
||||||
|
|
||||||
|
* Glances:
|
||||||
|
* PSutil:
|
||||||
|
* OS:
|
11
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
11
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
### Resume
|
||||||
|
|
||||||
|
| Q | A
|
||||||
|
| ------------- | ---
|
||||||
|
| Bug fix? | yes/no
|
||||||
|
| New feature? | yes/no
|
||||||
|
| BC breaks? | yes/no
|
||||||
|
| Deprecations? | yes/no
|
||||||
|
| Fixed tickets | comma-separated list of tickets fixed by the PR, if any
|
||||||
|
|
||||||
|
### Description
|
7
NEWS
7
NEWS
@ -2,6 +2,13 @@
|
|||||||
Glances Version 2
|
Glances Version 2
|
||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
|
Version 2.7
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bugs corrected:
|
||||||
|
|
||||||
|
* Crash on launch when viewing temperature of laptop HDD in sleep mode (issue #824)
|
||||||
|
|
||||||
Version 2.6.1
|
Version 2.6.1
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ import sys
|
|||||||
|
|
||||||
# Global name
|
# Global name
|
||||||
__appname__ = 'glances'
|
__appname__ = 'glances'
|
||||||
__version__ = '2.6.1'
|
__version__ = '2.7_BETA'
|
||||||
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
|
__author__ = 'Nicolas Hennion <nicolas@nicolargo.com>'
|
||||||
__license__ = 'LGPL'
|
__license__ = 'LGPL'
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
|
import numbers
|
||||||
|
|
||||||
from glances.compat import nativestr, range
|
from glances.compat import nativestr, range
|
||||||
from glances.logger import logger
|
from glances.logger import logger
|
||||||
@ -119,7 +120,8 @@ class GlancesGrabHDDTemp(object):
|
|||||||
temperature = fields[offset + 3]
|
temperature = fields[offset + 3]
|
||||||
unit = nativestr(fields[offset + 4])
|
unit = nativestr(fields[offset + 4])
|
||||||
hddtemp_current['label'] = device
|
hddtemp_current['label'] = device
|
||||||
hddtemp_current['value'] = float(temperature) if temperature != b'ERR' else temperature
|
# Temperature could be 'ERR' or 'SLP' (see issue#824)
|
||||||
|
hddtemp_current['value'] = float(temperature) if isinstance(temperature, numbers.Number) else temperature
|
||||||
hddtemp_current['unit'] = unit
|
hddtemp_current['unit'] = unit
|
||||||
self.hddtemp_list.append(hddtemp_current)
|
self.hddtemp_list.append(hddtemp_current)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user