mirror of
https://github.com/alexjustesen/speedtest-tracker.git
synced 2026-06-23 04:30:09 +00:00
bug: fix threshold notification (#2702)
This commit is contained in:
@@ -72,7 +72,7 @@ class ProcessUnhealthySpeedtest
|
||||
if ($benchmark['passed'] === false) {
|
||||
$failed[] = [
|
||||
'name' => ucfirst($metric),
|
||||
'threshold' => $benchmark['value'].' '.$benchmark['unit'],
|
||||
'threshold' => $benchmark['benchmark_value'].' '.$benchmark['unit'],
|
||||
'value' => $this->formatMetricValue($metric, $result),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ class UnhealthySpeedtestMail extends Mailable implements ShouldQueue
|
||||
{
|
||||
$metricName = str($metric)->title();
|
||||
$type = str($benchmark['type'])->title();
|
||||
$thresholdValue = $benchmark['value'].' '.str($benchmark['unit'])->title();
|
||||
$thresholdValue = $benchmark['benchmark_value'].' '.str($benchmark['unit'])->title();
|
||||
|
||||
// Get the actual result value
|
||||
$resultValue = match ($metric) {
|
||||
|
||||
Reference in New Issue
Block a user