mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Implicitly add an TimeEntry's weight when calling getValue()
refs #4190
This commit is contained in:
parent
34f25c6009
commit
103d43ea77
@ -136,11 +136,12 @@ class TimeEntry
|
|||||||
/**
|
/**
|
||||||
* Return the amount of events in this group
|
* Return the amount of events in this group
|
||||||
*
|
*
|
||||||
|
* @param bool $raw Whether to ignore the set weight
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getValue()
|
public function getValue($raw = false)
|
||||||
{
|
{
|
||||||
return $this->value;
|
return $raw ? $this->value : $this->value * $this->weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user