Skip to content

Commit

Permalink
v1.2.2 loop iterator fix for time sync.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbehr1 committed Apr 14, 2020
1 parent 8cc08f9 commit 198723b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
All notable changes to the "smart-log" extension will be documented in this file.

<!-- Check [Keep a Changelog](http:https://keepachangelog.com/) for recommendations on how to structure this file. -->
## [1.2.2]

- Time sync loop iterator fix.

## [1.2.1]

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "smart-log",
"displayName": "Smart-Log",
"description": "Provides analysis and visualization features for text based log files.",
"version": "1.2.1",
"version": "1.2.2",
"license": "CC BY-NC-SA 4.0",
"publisher": "mbehr1",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ export default class SmartLogs implements vscode.TreeDataProvider<EventNode>, vs
const remoteSyncEv = ev.timeSyncs[i];
console.log(` got id='${remoteSyncEv.id}' with value='${remoteSyncEv.value} at ${remoteSyncEv.time.toLocaleTimeString()}`);
// do we have this id? (optimize with maps... for now linear (search))
for (let j = 0; i < data.timeSyncs.length; ++j) {
for (let j = 0; j < data.timeSyncs.length; ++j) {
const localSyncLineEv = data.timeSyncs[j];
const localSyncEv = localSyncLineEv[1];
if (remoteSyncEv.id === localSyncEv.id) {
Expand Down

0 comments on commit 198723b

Please sign in to comment.