Skip to content

Fix submission size computation#432

Merged
gkreitz merged 1 commit into
Kattis:masterfrom
gkreitz:fix_submission_size_computation
Jun 17, 2026
Merged

Fix submission size computation#432
gkreitz merged 1 commit into
Kattis:masterfrom
gkreitz:fix_submission_size_computation

Conversation

@gkreitz

@gkreitz gkreitz commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

We had two old bugs in how we computed the size of a submission (which we use to give an error when an example submission is larger than the submission size limit).

Firstly, we included any include files in the computation (which has tripped us up a few times in the past). Secondly, we only counted files we would list on the command line (so, e.g.,*.h was not counted).

This PR makes is so that the size of a submission is the size of the files in the submission - nothing more, nothing less. :)

@gkreitz gkreitz merged commit e01a331 into Kattis:master Jun 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants