Skip to content

Commit

Permalink
Merge pull request #11 from DoodlesEpic/patch/repeat-calc
Browse files Browse the repository at this point in the history
Disable chart generation with more than 10000 primes temporarilly
  • Loading branch information
DoodlesEpic authored May 22, 2022
2 parents 78b2b71 + 64a1a21 commit a2a0424
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "app"
version = "0.9.0"
version = "0.10.0"
description = "Cross-platform prime number calculator developed on Tauri and Svelte with beautiful frappe graphs and excellent performance"
authors = ["Doodles"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "graph-prime",
"version": "0.9.0"
"version": "0.10.0"
},
"tauri": {
"allowlist": {
Expand Down
9 changes: 8 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,14 @@

<div class="card">
<h2>Graph</h2>
<Chart {data} type="line" />
{#if primes.length < 10000}
<Chart {data} type="line" />
{:else}
<p>
Chart generation disabled for more than 10000 prime numbers for
performance reasons
</p>
{/if}
</div>
{/if}
</main>
Expand Down

0 comments on commit a2a0424

Please sign in to comment.