Skip to content

Conversation

@maxha651
Copy link
Collaborator

@maxha651 maxha651 commented Aug 2, 2019

No description provided.

marre914 added 30 commits March 26, 2019 10:28
streaming info when displayed. Needs to be fixed
zoom & drag funcition. Lots of trash code that needs to be cleaned
Copy link
Collaborator Author

@maxha651 maxha651 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bunch of commented code and whitespace should also be removed.




if (lastDuration > 1000000000){
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this check?

if (duration - lastDuration >= emitFrequency) {
bitrate = (bytes - lastSecondBytes)*8*1000/(duration - lastDuration);
lastSecondBytes = bytes;
// lastDuration = duration;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use lastDuration in two places like this. Not sure this is actually run.

emitFrequency should mean that this is run every emit, in that case just move it to the other "emit" code below.


emit status(AnalyzerStatus(Status::STATUS_PERIODIC, bytes, duration, bitrate, duration, pidMap, tsErrors, proto, tsPerIp));
emit workerStatus(WorkerStatus(WorkerStatus::STATUS_PERIODIC, streams));
if(bitrate / 1000000 < 100){
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't need this check

QString s3 = "IAT deviation";

QString string = ( s1+ s2 + s3 );
stream << string << endl;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor point: Use "\n" or "\r\n" as newline (consistently) instead of endl.

So we don't depend on whatever the implementation thinks endl is. Also I think it's an implicit flush.

@@ -0,0 +1,342 @@
#include "recordwidgetgraph.h"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #36 #37 #38 #39

@marre914 marre914 marked this pull request as ready for review August 15, 2019 09:06
@marre914 marre914 changed the title Marko comments Max comments Aug 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants