Skip to content

Commit

Permalink
Clean up, disk I/O bug
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Aug 26, 2024
1 parent 64a2b3c commit 5bfa12a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Protest/Front/deviceview.js
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ class DeviceView extends View {
})(),

(async ()=> {
const response = await fetch(`lifeline/disk/view?file=${this.args.file}&date=${oYear}${oMonth}`);
const response = await fetch(`lifeline/diskio/view?file=${this.args.file}&date=${oYear}${oMonth}`);
const buffer = await response.arrayBuffer();
return new Uint8Array(buffer);
})(),
Expand Down
9 changes: 3 additions & 6 deletions Protest/Front/mono/ram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions Protest/Workers/Lifeline.cs
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ public static byte[] ViewFile(Dictionary<string, string> parameters, string type
if (parameters is null) { return null; }

parameters.TryGetValue("file", out string file);
parameters.TryGetValue("date", out string date);

if (String.IsNullOrEmpty(file)) { return null; }

parameters.TryGetValue("date", out string date);

return ViewFile(file, date, type);
}
public static byte[] ViewFile(string file, string date, string type) {
Expand Down

0 comments on commit 5bfa12a

Please sign in to comment.