Skip to content

Language statistics percentages don't add up to 100% #22023

Closed
@hr-98

Description

@hr-98

Description

This is probably just a rounding bug, but it is still a little bit frustrating when you notice it.
As you can see from the screenshot, the percentages are
COBOL 45.7%
Assembly 43.2%
Shell 5.9%
Ruby 5.3%
which is 100.1% in total.

I've made a copy of my repo here:
https://try.gitea.io/hr98/aoc22-copy-percentage-bug

Gitea Version

Gitea version 1.17.3 built with GNU Make 4.1, go1.18.7 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image

Git Version

git version 2.31.1

Operating System

Linux

How are you running Gitea?

Downloaded the binary and running as systemd service on Alma Linux 9.

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions