Skip to content

Commit

Permalink
Added performance formatter with spaghetti code
Browse files Browse the repository at this point in the history
  • Loading branch information
AsbjoernJC committed May 13, 2024
1 parent cdd12e4 commit c05de3f
Show file tree
Hide file tree
Showing 3 changed files with 426 additions and 342 deletions.
2 changes: 1 addition & 1 deletion TimeTrace/src/components/predefined-tres/TimedEventTRE.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function TimedEventTRE({ treObject, onSubmit, closeTRE }: TimedEventTREProps) {
<form id="after-tre" onSubmit={onSubmit}>
<div className="flex flex-col gap-2">
<div className="flex gap-4">
<ModalInput tooltip="The first group of events you want to match." required={true} value={TREObject.input.firstGroup} onChange={(e) => { treObject.input.firstGroup = e.target.value; updateTREObject();}} label="First group of events" placeholder="Enter the first group of events" ></ModalInput>
<ModalInput tooltip="The group of events you want to match." required={true} value={TREObject.input.firstGroup} onChange={(e) => { treObject.input.firstGroup = e.target.value; updateTREObject();}} label="First group of events" placeholder="Enter the first group of events" ></ModalInput>
</div>
<div className="flex gap-4">
<ModalInput tooltip="The start" required={true} value={TREObject.input.startTime} onChange={(e) => { treObject.input.startTime = e.target.value; updateTREObject();}} label="Start time" placeholder="Enter the start time" ></ModalInput>
Expand Down
2 changes: 1 addition & 1 deletion TimeTrace/src/models/LogSearcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export abstract class LogSearcher {
console.timeEnd("findZones");
let hashAvg = hashCount === 0 ? 0 : hashTime/hashCount
let binaryAvg = binaryCount === 0 ? 0 : binaryTime/hashCount
console.log("Average hash zone time: " + hashAvg + " \nAverage binary zone time: " + binaryAvg)
console.log("Averagehashzonetime: " + hashAvg + " \nAveragebinaryzonetime: " + binaryAvg)
return MonaaZoneMatches
}

Expand Down
Loading

0 comments on commit c05de3f

Please sign in to comment.