From 675dedf1d4776699a7e5a5fba5e41c9335957a18 Mon Sep 17 00:00:00 2001 From: HaseHarald Date: Sun, 23 Aug 2020 18:17:21 +0200 Subject: [PATCH] [plugins/disk/btrfs_device_usage] Reformat linebreaks. Following suggestions from linting. --- plugins/disk/btrfs_device_usage | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/plugins/disk/btrfs_device_usage b/plugins/disk/btrfs_device_usage index 04af4642..1876f235 100755 --- a/plugins/disk/btrfs_device_usage +++ b/plugins/disk/btrfs_device_usage @@ -35,8 +35,8 @@ def munin_config(fs): for this_device in devices: this_dev_info = fs.dev_info(this_device.devid) this_dev_name = this_dev_info.path.replace('/dev/', '') - print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + \ - ".label " + this_dev_name) + print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + + ".label " + this_dev_name) print("") @@ -53,8 +53,8 @@ def munin_config(fs): for this_device in devices: this_dev_info = fs.dev_info(this_device.devid) this_dev_name = this_dev_info.path.replace('/dev/', '') - print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + \ - ".label " + this_dev_name) + print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + + ".label " + this_dev_name) print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".warning 95") print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".critical 98") @@ -69,8 +69,8 @@ def munin_values(fs): for this_device in devices: this_dev_info = fs.dev_info(this_device.devid) - print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + \ - ".value " + str(this_dev_info.bytes_used)) + print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + + ".value " + str(this_dev_info.bytes_used)) print("") @@ -82,8 +82,8 @@ def munin_values(fs): for this_device in devices: this_dev_info = fs.dev_info(this_device.devid) usage = 100.0 * this_dev_info.bytes_used / this_dev_info.total_bytes - print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + \ - ".value " + str(round(usage, 2))) + print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + + ".value " + str(round(usage, 2))) print("")