Gitea local Stats wrong on Rpi3 #10026

Open
opened 2025-11-02 08:56:10 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @BeckUp-Media on GitHub (Dec 30, 2022).

Description

Hi,
i have setup an local Gitea on my Raspberry 3 and have realized that the Stats are wrong. Most Code inside my Repo is .java and .xml but the Statistics shows most is GLSL (95.8%)

Gitea Version

1.17.0 built with GNU Make 4.1, go1.18.4 : bindata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

GLSL-instead-of-java
GLSL-instead-of-java_github_old-repo

Git Version

2.30.2, Wire Protocol Version 2 Enabled

Operating System

Debian

How are you running Gitea?

Gitextensions for commits

Database

MySQL

Originally created by @BeckUp-Media on GitHub (Dec 30, 2022). ### Description Hi, i have setup an local Gitea on my Raspberry 3 and have realized that the Stats are wrong. Most Code inside my Repo is .java and .xml but the Statistics shows most is GLSL (95.8%) ### Gitea Version 1.17.0 built with GNU Make 4.1, go1.18.4 : bindata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![GLSL-instead-of-java](https://user-images.githubusercontent.com/106422885/210054501-696f38a7-580c-48b4-97bb-4e0ae2598198.PNG) ![GLSL-instead-of-java_github_old-repo](https://user-images.githubusercontent.com/106422885/210054513-eaf43977-0fc5-49c4-9803-c45d38695898.PNG) ### Git Version 2.30.2, Wire Protocol Version 2 Enabled ### Operating System Debian ### How are you running Gitea? Gitextensions for commits ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 08:56:10 -06:00
Author
Owner

@yp05327 commented on GitHub (Apr 24, 2023):

It seems that gitea calculates the language percentage by file size not the count number of files.

For example, there are only two files in my test repo, but Go is 99.3%.
image
The data are saved in language_stat table.
image
We can see that the size of Go files is 457. Then the percentage is 457/(457+3)=99.3%

Also, maybe there are some problems when analysing the file type.

@yp05327 commented on GitHub (Apr 24, 2023): It seems that gitea calculates the language percentage by file size not the count number of files. For example, there are only two files in my test repo, but `Go` is 99.3%. ![image](https://user-images.githubusercontent.com/18380374/233919807-c150a264-31e4-4cdf-80f2-95639e58a02a.png) The data are saved in `language_stat` table. ![image](https://user-images.githubusercontent.com/18380374/233919907-4a67f4bf-08d3-4487-b0fc-39e1f79d4334.png) We can see that the size of Go files is 457. Then the percentage is 457/(457+3)=99.3% Also, maybe there are some problems when analysing the file type.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10026