Skip to content

Commit

Permalink
hotfix: missing rtt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Feb 12, 2024
1 parent cbe4085 commit 28278be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/publisher/src/kinds/Kind30066.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ export class Kind30066 extends Publisher {
if(data?.network)
tags.push( ['other', 'network', data.network] )
if(isRtt) {
if(data.connect?.data && data.connect?.duration > 0 && data?.write?.status !== 'error')
if(data.connect?.data)
tags.push([ 'rtt', 'open', data.connect.duration.toString() ])
if(data.read?.data && data?.read?.duration > 0 && data?.write?.status !== 'error')
if(data?.read?.data)
tags.push([ 'rtt', 'read', data.read.duration.toString() ])
if(data.write?.data && data?.write?.duration > 0 && data?.write?.status !== 'error')
if(data?.write?.data)
tags.push([ 'rtt', 'write', data.write.duration.toString() ])
}

Expand Down

0 comments on commit 28278be

Please sign in to comment.