File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -233,13 +233,13 @@ protected function discordChannel(ResultCreated $event): void
233233 $ failedThresholds = []; // Initialize an array to keep track of failed thresholds
234234
235235 // Check Download threshold
236- if ($ this ->thresholdSettings ->absolute_download > 0 && absoluteDownloadThresholdFailed ($ this ->thresholdSettings ->absolute_download , $ event ->result ->downloadBits )) {
237- $ failedThresholds ['Download ' ] = ( $ event ->result ->downloadBits / 1000000 ).' ( Mbps) ' ;
236+ if ($ this ->thresholdSettings ->absolute_download > 0 && absoluteDownloadThresholdFailed ($ this ->thresholdSettings ->absolute_download , $ event ->result ->download )) {
237+ $ failedThresholds ['Download ' ] = toBits ( convertSize ( $ event ->result ->download ), 2 ).' Mbps ' ;
238238 }
239239
240240 // Check Upload threshold
241- if ($ this ->thresholdSettings ->absolute_upload > 0 && absoluteUploadThresholdFailed ($ this ->thresholdSettings ->absolute_upload , $ event ->result ->uploadBits )) {
242- $ failedThresholds ['Upload ' ] = ( $ event ->result ->uploadBits / 1000000 ).' ( Mbps) ' ;
241+ if ($ this ->thresholdSettings ->absolute_upload > 0 && absoluteUploadThresholdFailed ($ this ->thresholdSettings ->absolute_upload , $ event ->result ->upload )) {
242+ $ failedThresholds ['Upload ' ] = toBits ( convertSize ( $ event ->result ->upload ), 2 ).' Mbps ' ;
243243 }
244244
245245 // Check Ping threshold
You can’t perform that action at this time.
0 commit comments