From 82911254b1b2b9c43deff67d9e84a9fb8b867dc5 Mon Sep 17 00:00:00 2001 From: Thomas Vial Date: Wed, 12 Jun 2013 16:59:48 +0200 Subject: [PATCH] Fixed element sorting on config call --- plugins/thin/thin_memory | 2 +- plugins/thin/thin_threads | 2 +- plugins/thin/thins_peak_memory | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/thin/thin_memory b/plugins/thin/thin_memory index f800f759..a496ede4 100755 --- a/plugins/thin/thin_memory +++ b/plugins/thin/thin_memory @@ -81,7 +81,7 @@ when "config" puts "graph_args --base 1024 -l 0" puts "graph_scale yes" puts "graph_info Tracks the size of individual thin processes" - mpm.get_pids.sort.each do |instance| + mpm.get_pids.each do |instance| pid, port = instance.split("|") puts "thin_#{port}.label thin_#{port}" puts "thin_#{port}.info Process memory" diff --git a/plugins/thin/thin_threads b/plugins/thin/thin_threads index c328b48d..bfb09bc7 100755 --- a/plugins/thin/thin_threads +++ b/plugins/thin/thin_threads @@ -85,7 +85,7 @@ when "config" puts "graph_args -l 0" puts "graph_scale yes" puts "graph_info Tracks how many threads per thin processes" - mpm.get_pids.sort.each do |instance| + mpm.get_pids.each do |instance| pid, port = instance.split("|") puts "thin_#{port}.label thin_#{port}" puts "thin_#{port}.info Threads per Thin process" diff --git a/plugins/thin/thins_peak_memory b/plugins/thin/thins_peak_memory index bcf56c9c..4dc47e5b 100755 --- a/plugins/thin/thins_peak_memory +++ b/plugins/thin/thins_peak_memory @@ -83,7 +83,7 @@ when "config" puts "graph_args -l 0" puts "graph_scale yes" puts "graph_info Tracks the peak memory of thin processes, aka High Water Mark." - mpm.get_pids.sort.each do |instance| + mpm.get_pids.each do |instance| pid, port = instance.split("|") puts "thin_#{port}.label thin_#{port}" puts "thin_#{port}.info Peak Memory"