We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffb34f commit d76f7a1Copy full SHA for d76f7a1
models/repo_language_stats.go
@@ -57,14 +57,14 @@ func (stats LanguageStatList) getLanguagePercentages() map[string]float32 {
57
var total int64
58
for _, stat := range stats {
59
// Exclude specific languages from percentage calculation
60
- if _, ok := specialLanguages[stat.Language]; ok {
+ if _, ok := specialLanguages[stat.Language]; ok && len(stats) > 1 {
61
continue
62
}
63
total += stat.Size
64
65
66
67
68
69
70
perc := float32(math.Round(float64(stat.Size)/float64(total)*1000) / 10)
0 commit comments