Skip to content

Commit

Permalink
Fix GUI to handle new interface
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif committed Jan 15, 2024
1 parent da9ad45 commit d7e9b36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions axiom-profiler-GUI/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ impl Component for FileDataComponent {
wasm_bindgen_futures::spawn_local(async move {
log::info!("Parsing: {file_name}");
let finished = parser.process_until(|_, state| state.bytes_read <= 1024 * 1024 * 1024).await;
let finished = finished.is_none();
if !finished {
if finished.is_timeout() {
// TODO: make this clear in the UI
log::info!("Stopped parsing at 1GB");
}
Expand All @@ -81,8 +80,7 @@ impl Component for FileDataComponent {
log::info!("Parsing: {file_name}");
let mut parser = Z3Parser::from_str(&text_data);
let finished = parser.process_until(|_, state| state.bytes_read <= 512 * 1024 * 1024);
let finished = finished.is_none();
if !finished {
if finished.is_timeout() {
// TODO: make this clear in the UI
log::info!("Stopped parsing at 0.5GB (use Chrome or Firefox to increase this limit to 1GB)");
}
Expand Down

0 comments on commit d7e9b36

Please sign in to comment.