Skip to content

Commit

Permalink
Minor changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
aunshx committed Sep 27, 2024
1 parent aa55d68 commit 2cce431
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Components/Pages/Team/Ancilliary/Data/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export const currentTeam = [
{
name: "Aunsh Bandivadekar",
title: "Architect & Developer",
title: "Dev",
socials: [
"https://instagram.com/aunsh___",
"https://linkedin.com/in/aunsh",
Expand All @@ -13,7 +13,7 @@ export const currentTeam = [
},
{
name: "Saipranav Kotamreddy",
title: "Architect & Developer",
title: "Dev",
socials: {
ig: "https://instagram.com/aunsh___",
linkedIn: "https://instagram.com/in/aunsh",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ export const generateConnections = (
points.prePrepare.start.push(points.request.end[0].points[i])
}

for (let i = 1; i < yCoords.length; i++) {
yCoordToReplicas = {
...yCoordToReplicas,
[yCoords[i]]: i,
};
}

for (const element of points.prePrepare.start) points.prePrepare.end.push([]);

for (let i = 0; i < points.prePrepare.start.length; i++) {
Expand All @@ -100,13 +107,6 @@ export const generateConnections = (
}
}

for (let i = 1; i < yCoords.length; i++) {
yCoordToReplicas = {
...yCoordToReplicas,
[yCoords[i]]: i,
};
}

// PREPARE OBJECT
let xVal = points.prePrepare.end[0][0].points.x;
let currentPreparePoints = new Set();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const truncData = (data, currentTransaction) => {
.sort(([keyA], [keyB]) => parseInt(keyA) - parseInt(keyB))
.slice(0, 10);
}

const result = {};
selectedEntries.forEach(([key, value]) => {
result[key] = value;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Pages/Visualizer/Graphs/PBFT/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const Pbft = () => {
points.prePrepare.start.length > 0 && points.prePrepare.start.map((start, index) =>
points.prePrepare.end[index].map((end, i) => {
return (
end.flag && connectionRender([start, end.points], points.prePrepare.color, pointColorMode, TRANSDURATION_NP, i * 1 + PREPREPARE_BUFFER_NP, lineGen, lineSVG, 'prepare')
end.flag && connectionRender([start, end.points], points.prePrepare.color, pointColorMode, TRANSDURATION_NP, i * 1 + PREPREPARE_BUFFER_NP, lineGen, lineSVG, 'prePrepare')
);
})
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ const TableValues = ({ srNo, transaction, loading }) => {

const SmallTable = () => {
const { loading, truncatedData } = useContext(VizDataHistoryContext)

console.log('TRUNC DATA', truncatedData)


return (
<table className="text-sm text-center rtl:text-right dark:text-gray-300 text-gray-700 h-full w-full">
Expand Down

0 comments on commit 2cce431

Please sign in to comment.