Skip to content

Commit

Permalink
fixed design issues and corrected graph throughput time calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlangstedt Anne authored and schlangstedt committed Aug 9, 2022
1 parent 66e0f5d commit dff654b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion public/components/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ $font-size-small: 14px;
.main-design-scope {
width: 100%;
height: 100%;
margin-bottom: 10px;
}

.main-design-scope p {
Expand Down
2 changes: 1 addition & 1 deletion public/components/pages/process_graph/vis_graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const VisGraphComponent = (props: VisGraphComponentProps) => {
},
arrowStrikethrough: false,
},
height: '980px',
height: '1080px',
physics: {
enabled: false,
},
Expand Down
2 changes: 1 addition & 1 deletion public/components/pages/side_panel/panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const PanelComponent = (props: PanelComponentProps) => {
style={{ padding: '15px', height: '100%', width: '315px', minHeight: '746px' }}
>
<div className="grid-container">
<div className="design-scope">
<div className="main-design-scope">
<img src={logo} alt="Logo" className="logo" />
<div className="counter-container">
<div className="counter-item">
Expand Down
5 changes: 4 additions & 1 deletion server/graph_calculation/calculate_throughput_time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export function calculateGraphThroughputTime(nodes: VisNode[]) {
}
const sortedNodes = sortNodes(nodes, 'timestamp');

const throughputTimeMilliseconds = sortedNodes[lastIndex].timestamp - sortedNodes[0].timestamp;
const throughputTimeMilliseconds =
(sortedNodes[lastIndex].endTime
? sortedNodes[lastIndex].endTime
: sortedNodes[lastIndex].timestamp) - sortedNodes[0].timestamp;
const throughputTimeSeconds = throughputTimeMilliseconds / 1000;

return throughputTimeSeconds;
Expand Down

0 comments on commit dff654b

Please sign in to comment.