Skip to content

Commit

Permalink
fix(General): 🐞 Wrong comparison between max date collectors and proc…
Browse files Browse the repository at this point in the history
…esses
  • Loading branch information
bartoval committed Jun 29, 2023
1 parent e2efaa0 commit cfbcc06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/Addresses/components/ConnectionsByAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const ConnectionsByAddress: FC<ConnectionsByAddressProps> = function ({ addressI

const serverNames = Object.values(servers).map(({ name }) => ({ destinationName: name }));
const serverNamesIds = servers.map(({ name }) => name).join('|');
const startTime = servers.reduce((acc, process) => Math.max(acc, process.startTime), 0);
const startTime = servers.reduce((acc, process) => Math.min(acc, process.startTime), 0);

if (isPrometheusActive && byteRates) {
const byteRatesMap = byteRates.reduce((acc, byteRate) => {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Addresses/components/RequestsByAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const RequestsByAddress: FC<RequestsByAddressProps> = function ({ addressId, add

const serverNames = Object.values(servers).map(({ name }) => ({ destinationName: name }));
const serverNamesId = servers.map(({ name }) => name).join('|');
const startTime = servers.reduce((acc, process) => Math.max(acc, process.startTime), 0);
const startTime = servers.reduce((acc, process) => Math.min(acc, process.startTime), 0);

return (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProcessGroups/views/ProcessGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const ProcessGroup = function () {
const processResults = processes.results;
const serverNameFilters = Object.values(processResults).map(({ name: destinationName }) => ({ destinationName }));
const serverNames = processResults.map(({ name: processName }) => processName).join('|');
const startTime = processResults.reduce((acc, process) => Math.max(acc, process.startTime), 0);
const startTime = processResults.reduce((acc, process) => Math.min(acc, process.startTime), 0);

return (
<TransitionPage>
Expand Down

0 comments on commit cfbcc06

Please sign in to comment.