Skip to content

Commit

Permalink
refactor: improve performance rating function signature
Browse files Browse the repository at this point in the history
- Updated getPerformanceRating function to use named return values
- Maintained existing performance rating logic
- Improved function signature clarity and readability
  • Loading branch information
tphakala committed Jan 25, 2025
1 parent 72b26af commit 19609e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/benchmark/benchmark.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func runInferenceBenchmark(settings *conf.Settings, results *benchmarkResults) e
return nil
}

func getPerformanceRating(inferenceTime float64) (string, string) {
func getPerformanceRating(inferenceTime float64) (rating, description string) {
switch {
case inferenceTime > 3000:
return "❌ Failed", "System is too slow for BirdNET-Go real-time detection"
Expand Down

0 comments on commit 19609e8

Please sign in to comment.