From 09d86946f159a1ab43b147fcee076bd35bd5e6ad Mon Sep 17 00:00:00 2001 From: Olivier Mehani Date: Sun, 4 Sep 2016 14:15:20 +1000 Subject: [PATCH] [file_length_] Add logarithmic option Signed-off-by: Olivier Mehani --- plugins/system/file_length_ | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/system/file_length_ b/plugins/system/file_length_ index 7aff3e5e..27a30c10 100755 --- a/plugins/system/file_length_ +++ b/plugins/system/file_length_ @@ -14,6 +14,7 @@ Useful for things such as lists (white, black, user, ...). env.files FILEPATHGLOB1 FILEPATHGLOB2 ... env.category DEFAULTS_TO_system env.title OPTIONAL_TITLE + env.logarithmic 1 =head1 AUTHOR @@ -38,13 +39,19 @@ CATEGORY=${category:-system} FILES=${files:-/var/log/messages} FILES=$(echo $(ls $FILES)) + if [ "$1" = "config" ] ; then + if [ ${logarithmic} = 1 ]; then + graph_args="-o" + else + graph_args="-l 0" + fi cat <