mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-25 23:05:30 +02:00
Fixed size in module graph
Former-commit-id: 5afdc41a1a7ec50f16bd39f70af6821505f98946
This commit is contained in:
parent
56fef21bc6
commit
d541eab986
@ -192,10 +192,6 @@ final class ModuleGraph extends Item
|
|||||||
|
|
||||||
// Custom graph.
|
// Custom graph.
|
||||||
if (empty($customGraphId) === false) {
|
if (empty($customGraphId) === false) {
|
||||||
// TODO: use a custom size.
|
|
||||||
$width = 180;
|
|
||||||
$height = 480;
|
|
||||||
|
|
||||||
$customGraph = \db_get_row_filter(
|
$customGraph = \db_get_row_filter(
|
||||||
'tgraph',
|
'tgraph',
|
||||||
'id_graph',
|
'id_graph',
|
||||||
@ -204,8 +200,8 @@ final class ModuleGraph extends Item
|
|||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
'period' => $period,
|
'period' => $period,
|
||||||
'width' => $width,
|
'width' => $data['width'],
|
||||||
'height' => $height,
|
'height' => $data['height'],
|
||||||
'title' => '',
|
'title' => '',
|
||||||
'unit_name' => null,
|
'unit_name' => null,
|
||||||
'show_alerts' => false,
|
'show_alerts' => false,
|
||||||
@ -233,16 +229,12 @@ final class ModuleGraph extends Item
|
|||||||
throw new \InvalidArgumentException('missing module Id');
|
throw new \InvalidArgumentException('missing module Id');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: use a custom size.
|
|
||||||
$width = 300;
|
|
||||||
$height = 180;
|
|
||||||
|
|
||||||
$params = [
|
$params = [
|
||||||
'agent_module_id' => $moduleId,
|
'agent_module_id' => $moduleId,
|
||||||
'period' => $period,
|
'period' => $period,
|
||||||
'show_events' => false,
|
'show_events' => false,
|
||||||
'width' => $width,
|
'width' => $data['width'],
|
||||||
'height' => $height,
|
'height' => $data['height'],
|
||||||
'title' => \modules_get_agentmodule_name($moduleId),
|
'title' => \modules_get_agentmodule_name($moduleId),
|
||||||
'unit' => \modules_get_unit($moduleId),
|
'unit' => \modules_get_unit($moduleId),
|
||||||
'only_image' => $imageOnly,
|
'only_image' => $imageOnly,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user