1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

[plugins/disk/btrfs_device_usage] Reformat linebreaks.

Following suggestions from linting.
This commit is contained in:
HaseHarald 2020-08-23 18:17:21 +02:00
parent f12bfed795
commit 675dedf1d4

View file

@ -35,7 +35,7 @@ def munin_config(fs):
for this_device in devices: for this_device in devices:
this_dev_info = fs.dev_info(this_device.devid) this_dev_info = fs.dev_info(this_device.devid)
this_dev_name = this_dev_info.path.replace('/dev/', '') this_dev_name = this_dev_info.path.replace('/dev/', '')
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + \ print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
".label " + this_dev_name) ".label " + this_dev_name)
print("") print("")
@ -53,7 +53,7 @@ def munin_config(fs):
for this_device in devices: for this_device in devices:
this_dev_info = fs.dev_info(this_device.devid) this_dev_info = fs.dev_info(this_device.devid)
this_dev_name = this_dev_info.path.replace('/dev/', '') this_dev_name = this_dev_info.path.replace('/dev/', '')
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + \ print("btrfs_percent_" + fsid + "_" + str(this_device.devid) +
".label " + this_dev_name) ".label " + this_dev_name)
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".warning 95") print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".warning 95")
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".critical 98") print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".critical 98")
@ -69,7 +69,7 @@ def munin_values(fs):
for this_device in devices: for this_device in devices:
this_dev_info = fs.dev_info(this_device.devid) this_dev_info = fs.dev_info(this_device.devid)
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + \ print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
".value " + str(this_dev_info.bytes_used)) ".value " + str(this_dev_info.bytes_used))
print("") print("")
@ -82,7 +82,7 @@ def munin_values(fs):
for this_device in devices: for this_device in devices:
this_dev_info = fs.dev_info(this_device.devid) this_dev_info = fs.dev_info(this_device.devid)
usage = 100.0 * this_dev_info.bytes_used / this_dev_info.total_bytes usage = 100.0 * this_dev_info.bytes_used / this_dev_info.total_bytes
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + \ print("btrfs_percent_" + fsid + "_" + str(this_device.devid) +
".value " + str(round(usage, 2))) ".value " + str(round(usage, 2)))
print("") print("")