Skip to content

Commit

Permalink
ditch setting limits
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian committed Mar 7, 2024
1 parent 338d3b1 commit 0c0098a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,6 @@ jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Debug
run: |
cat /proc/sys/fs/file-max
ulimit -Sn # Shows the soft limit
ulimit -Hn # Shows the hard limit
sudo su
ulimit -n 10485760
ulimit -Hn 10485760
prlimit --pid $$ --nofile=10485760:10485760
exit
sysctl -p
cat /proc/sys/fs/file-max
ulimit -Sn # Shows the soft limit
ulimit -Hn # Shows the hard limit
- name: Checkout
uses: actions/checkout@v4

Expand Down
11 changes: 10 additions & 1 deletion src/routes/einzelverssynopse/[thirties]/[verse]/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@ export function entries() {
// Generate all 827 Dreissiger with 1-30 verses
/** @type {import('./$types').RouteParams[]} */
const entryArray = [];
for (let thirties = 1; thirties <= 827; thirties++) {
/*for (let thirties = 1; thirties <= 827; thirties++) {
for (let verse = 1; verse <= 30; verse++) {
entryArray.push({
thirties: `${thirties}`,
verse: `${verse}`
});
}
}*/
// too many open files :(
for (let thirties = 1; thirties <= 2; thirties++) {
for (let verse = 1; verse <= 30; verse++) {
entryArray.push({
thirties: `${thirties}`,
Expand Down

0 comments on commit 0c0098a

Please sign in to comment.