Skip to content

Commit ae10076

Browse files
committed
Fixed Typo
1 parent 3b0095b commit ae10076

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/Listeners/SpeedtestCompletedListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ public function handle(ResultCreated $event): void
8585
"\nResult ID: " . $event->result->id .
8686
"\nSite Name: " . $this->generalSettings->site_name .
8787
"\nPing: " . $event->result->ping . " ms" .
88-
"\nDownload: " . ($event->result->downloadBits / 1000000) . " Mbits" .
89-
"\nUpload: " . ($event->result->uploadBits / 1000000) . " Mbits",
88+
"\nDownload: " . ($event->result->downloadBits / 1000000) . ' (Mbps)' .
89+
"\nUpload: " . ($event->result->uploadBits / 1000000) . ' (Mbps)',
9090
];
9191

9292
// Send the request using Laravel's HTTP client

app/Listeners/Threshold/AbsoluteListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ protected function discordChannel(ResultCreated $event): void
234234

235235
// Check Download threshold
236236
if ($this->thresholdSettings->absolute_download > 0 && absoluteDownloadThresholdFailed($this->thresholdSettings->absolute_download, $event->result->downloadBits)) {
237-
$failedThresholds['Download'] = ($event->result->downloadBits / 1000000) . " Mbits";
237+
$failedThresholds['Download'] = ($event->result->downloadBits / 1000000) . ' (Mbps)';
238238
}
239239

240240
// Check Upload threshold
241241
if ($this->thresholdSettings->absolute_upload > 0 && absoluteUploadThresholdFailed($this->thresholdSettings->absolute_upload, $event->result->uploadBits)) {
242-
$failedThresholds['Upload'] = ($event->result->uploadBits / 1000000) . " Mbits";
242+
$failedThresholds['Upload'] = ($event->result->uploadBits / 1000000) . ' (Mbps)';
243243
}
244244

245245
// Check Ping threshold

0 commit comments

Comments
 (0)