Skip to content

Commit fd2950a

Browse files
jcpoirier20jeffreyNabeezoo10
committed
Added comments to help decipher code.
Co-authored-by: jeffreyNa <[email protected]> Co-authored-by: beezoo10 <[email protected]>
1 parent de74ee3 commit fd2950a

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export DISPLAY="`sed -n 's/nameserver //p' /etc/resolv.conf`:0"
8585
### Running the Chronos Desktop App in Development Mode
8686

8787
1. From the root directory, run `npm install`
88-
2. Run 'npm run build'
88+
2. Run `npm run build`
8989
3. Open a new terminal and run `npm run dev:app` to start the Webpack development server
9090
4. Open a new terminal and run `npm run dev:electron` to start the Electron UI in development mode
9191

app/charts/HealthChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const HealthChart: React.FC<HealthChartProps> = React.memo(props => {
2828
}, 20);
2929

3030
const createChart = () => {
31+
//
3132
const timeArr = timeList.map((el: any) => moment(el).format('kk:mm:ss'));
3233
const reverseTimeArr = timeArr.reverse()
3334
const hashedColour = colourGenerator(renderService);

app/components/TransferColumns.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ const TransferColumns = React.memo(() => {
173173
const row = {};
174174
row['id'] = index;
175175
row['tag'] = el.tag;
176-
row['title'] = el.title.split(' | ')[1].replace("kubernetes-cadvisor/docker-desktop/", ""); // gets rid of the full path
176+
row['title'] = el.title.split(' | ')[1].replace('kubernetes-cadvisor/docker-desktop/', ''); // gets rid of the full path
177177
rows.push(row);
178178
});
179179

@@ -185,6 +185,8 @@ const TransferColumns = React.memo(() => {
185185
);
186186
});
187187

188+
//! BZ: creates metrics query page in Chronos
189+
188190
return (
189191
<>
190192
<div id="getChartsContainer">

app/containers/HealthContainer.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ const HealthContainer: React.FC<HealthContainerProps> = React.memo(props => {
2828
let counter: number = 0;
2929
const datalist: any[] = healthData.healthDataList;
3030
const timelist: any[] = healthData.healthTimeList;
31+
// dataList and timeList are the EXACT same thing. An array of 4 objects. [Memory, CPU, Processes, Latency]
32+
// Each element has all its metrics.
33+
console.log('healthData object in state: ', healthData);
3134
console.log('datalist in healthcontainer is:', datalist); //array of healthDataList
3235
console.log('timelist in healthcontainer is:', timelist);
3336

package-lock.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)