Skip to content

Max comments#40

Open
maxha651 wants to merge 43 commits into
masterfrom
markoDeveloper
Open

Max comments#40
maxha651 wants to merge 43 commits into
masterfrom
markoDeveloper

Conversation

@maxha651

@maxha651 maxha651 commented Aug 2, 2019

Copy link
Copy Markdown
Collaborator

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

@maxha651 maxha651 left a comment

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
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?

Comment thread Middleware/analyzerpcapmiddleware.cpp Outdated
if (duration - lastDuration >= emitFrequency) {
bitrate = (bytes - lastSecondBytes)*8*1000/(duration - lastDuration);
lastSecondBytes = bytes;
// lastDuration = duration;

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread Status/streaminfo.h Outdated
Comment thread chart.cpp Outdated
Comment thread recordtxtprinter.cpp
QString s3 = "IAT deviation";

QString string = ( s1+ s2 + s3 );
stream << string << endl;

Copy link
Copy Markdown
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.

Comment thread recordwidget.cpp Outdated
Comment thread recordwidget.cpp Outdated
Comment thread recordwidget.ui Outdated
Comment thread recordwidgetgraph.cpp
@@ -0,0 +1,342 @@
#include "recordwidgetgraph.h"

Copy link
Copy Markdown
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.

2 participants