File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments