Revert "Fix escaped chars for graphs legends (#12841)" (#12874)

This reverts commit 9ae652a15c.
This commit is contained in:
Tony Murray
2021-05-13 13:13:10 -05:00
committed by GitHub
parent 77a17dac88
commit 730ea3b008
54 changed files with 100 additions and 100 deletions

View File

@@ -16,13 +16,13 @@ if ($printtotal === 1) {
$unit_text = str_pad(truncate($unit_text, $unitlen), $unitlen);
if ($width > '500') {
$rrd_options .= " COMMENT:'" . substr(str_pad($unit_text, ($descr_len + 10)), 0, ($descr_len + 10)) . "Now Min Max Avg\\l'";
$rrd_options .= " COMMENT:'" . substr(str_pad($unit_text, ($descr_len + 10)), 0, ($descr_len + 10)) . "Now Min Max Avg\l'";
if ($printtotal === 1) {
$rrd_options .= " COMMENT:'Total '";
}
$rrd_options .= " COMMENT:'\\l'";
$rrd_options .= " COMMENT:'\l'";
} else {
$rrd_options .= " COMMENT:'" . substr(str_pad($unit_text, ($descr_len + 10)), 0, ($descr_len + 10)) . "Now Min Max Avg\\l'";
$rrd_options .= " COMMENT:'" . substr(str_pad($unit_text, ($descr_len + 10)), 0, ($descr_len + 10)) . "Now Min Max Avg\l'";
}
foreach ($rrd_list as $rrd) {