From 15b82505a0dd29685bfc99fadcea1fa335fd9e89 Mon Sep 17 00:00:00 2001 From: jsatoh Date: Fri, 25 Jun 2010 05:52:33 +0000 Subject: [PATCH] 2010-06-25 Junichi Satoh * operation/agentes/status_monitor.php: Changed substr() to mb_strimwidth(). Module name should be truncated with displayed length, not number of characters. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2925 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/operation/agentes/status_monitor.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 84fcb7ea74..0e404c797d 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-06-25 Junichi Satoh + + * operation/agentes/status_monitor.php: Changed substr() to + mb_strimwidth(). Module name should be truncated with displayed length, + not number of characters. + 2010-06-23 Ramon Novoa * include/fgraph.php: Continue drawing combined charts if modules diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index 00b0fbfa23..21db516b6d 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -221,7 +221,7 @@ foreach ($result as $row) { $data[2] = ''; - $data[3] = substr ($row["module_name"], 0, 30); + $data[3] = mb_strimwidth ($row["module_name"], 0, 30); $data[4] = ($row['module_interval'] == 0) ? $row['agent_interval'] : $row['module_interval'];