more whitespace fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
a3eb7b2cea
commit
1cafbdc70d
@ -155,7 +155,7 @@ pub fn get_smart_data(
|
||||
if let Some(list) = output["nvme_smart_health_information_log"].as_object() {
|
||||
for (name, value) in list {
|
||||
if name == "percentage_used" {
|
||||
// extract wearout from nvme text, allow for decimal values
|
||||
// extract wearout from nvme text, allow for decimal values
|
||||
if let Some(v) = value.as_f64() {
|
||||
if v <= 100.0 {
|
||||
wearout = Some(100.0 - v);
|
||||
|
@ -10,8 +10,8 @@ use super::*;
|
||||
lazy_static!{
|
||||
static ref ZFS_UUIDS: HashSet<&'static str> = {
|
||||
let mut set = HashSet::new();
|
||||
set.insert("6a898cc3-1dd2-11b2-99a6-080020736631"); // apple
|
||||
set.insert("516e7cba-6ecf-11d6-8ff8-00022d09712b"); // bsd
|
||||
set.insert("6a898cc3-1dd2-11b2-99a6-080020736631"); // apple
|
||||
set.insert("516e7cba-6ecf-11d6-8ff8-00022d09712b"); // bsd
|
||||
set
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user