File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -54,23 +54,23 @@ windowListen((o) => {
5454 if ( o . msg === EMsg . TELEMETRY_ACKNOWLEDGED ) {
5555 tick . delay = adjustTelemetryDelay ( o . timeOfCollection ) ;
5656 originalMetrics = currentMetrics ;
57- ! o . paused && tick . start ( ) ;
57+ eachSecond . isPending ( ) && tick . start ( ) ;
5858 } else if (
5959 o . msg === EMsg . SETTINGS &&
6060 o . settings &&
6161 typeof o . settings === 'object'
6262 ) {
6363 setSettings ( o . settings ) ;
6464 } else if ( o . msg === EMsg . START_OBSERVE ) {
65- originalMetrics = null ;
65+ originalMetrics = currentMetrics = null ;
6666 tick . trigger ( ) ;
6767 eachSecond . start ( ) ;
6868 } else if ( o . msg === EMsg . STOP_OBSERVE ) {
6969 tick . stop ( ) ;
7070 eachSecond . stop ( ) ;
7171 originalMetrics = currentMetrics = null ;
7272 } else if ( o . msg === EMsg . RESET_WRAPPER_HISTORY ) {
73- originalMetrics = null ;
73+ originalMetrics = currentMetrics = null ;
7474 cleanHistory ( ) ;
7575 ! tick . isPending ( ) && tick . trigger ( ) ;
7676 } else if ( o . msg === EMsg . TIMER_COMMAND ) {
Original file line number Diff line number Diff line change @@ -135,7 +135,6 @@ export interface TMsgTelemetry {
135135export interface TMsgTelemetryAcknowledged {
136136 msg : EMsg . TELEMETRY_ACKNOWLEDGED ;
137137 timeOfCollection : number ;
138- paused : boolean ;
139138}
140139export interface TMsgSettings {
141140 msg : EMsg . SETTINGS ;
Original file line number Diff line number Diff line change 5252 portPost ({
5353 msg: EMsg .TELEMETRY_ACKNOWLEDGED ,
5454 timeOfCollection: o .timeOfCollection ,
55- paused ,
5655 });
5756 }
5857
You can’t perform that action at this time.
0 commit comments