Skip to content

Commit

Permalink
Rename getRefreshInterval into getReloadInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoernricks committed Sep 5, 2018
1 parent 503111e commit 7e0c820
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions gsa/src/web/entities/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ class EntitiesContainer extends React.Component {
return duration;
}

getRefreshInterval() {
getReloadInterval() {
const {
defaultReloadInterval,
reloadInterval,
Expand All @@ -209,7 +209,7 @@ class EntitiesContainer extends React.Component {

log.debug('Loading time was', loadTime, 'milliseconds');

let interval = this.getRefreshInterval();
let interval = this.getReloadInterval();

if (loadTime > interval) {
// ensure timer is longer then the loading procedure
Expand Down
4 changes: 2 additions & 2 deletions gsa/src/web/entity/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class EntityContainer extends React.Component {
this.reload();
}

getRefreshInterval() {
getReloadInterval() {
const {
defaultReloadInterval,
reloadInterval,
Expand All @@ -97,7 +97,7 @@ class EntityContainer extends React.Component {
return;
}

const interval = this.getRefreshInterval();
const interval = this.getReloadInterval();

if (interval > 0) {
this.timer = global.setTimeout(this.handleTimer, interval);
Expand Down
10 changes: 5 additions & 5 deletions gsa/src/web/pages/assets/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ class AssetsDashboard extends React.Component {
this.clearTimer();
}

getRefreshInterval() {
getReloadInterval() {
const {gmp} = this.props;
return gmp.reloadInterval;
}

startTimer() {
const refresh = this.getRefreshInterval();
if (refresh >= 0) {
this.timer = window.setTimeout(this.handleTimer, refresh);
const interval = this.getReloadInterval();
if (interval > 0) {
this.timer = window.setTimeout(this.handleTimer, interval);
log.debug('Started reload timer with id', this.timer, 'and interval of',
refresh, 'milliseconds');
interval, 'milliseconds');
}
}

Expand Down
10 changes: 5 additions & 5 deletions gsa/src/web/pages/scans/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,17 @@ class ScansDashboard extends React.Component {
this.clearTimer();
}

getRefreshInterval() {
getReloadInterval() {
const {gmp} = this.props;
return gmp.reloadInterval;
}

startTimer() {
const refresh = this.getRefreshInterval();
if (refresh >= 0) {
this.timer = window.setTimeout(this.handleTimer, refresh);
const interval = this.getReloadInterval();
if (interval > 0) {
this.timer = window.setTimeout(this.handleTimer, interval);
log.debug('Started reload timer with id', this.timer, 'and interval of',
refresh, 'milliseconds');
interval, 'milliseconds');
}
}

Expand Down
10 changes: 5 additions & 5 deletions gsa/src/web/pages/securityinfo/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ class SecurityInfoDashboard extends React.Component {
this.clearTimer();
}

getRefreshInterval() {
getReloadInterval() {
const {gmp} = this.props;
return gmp.reloadInterval;
}

startTimer() {
const refresh = this.getRefreshInterval();
if (refresh >= 0) {
this.timer = window.setTimeout(this.handleTimer, refresh);
const interval = this.getReloadInterval();
if (interval >= 0) {
this.timer = window.setTimeout(this.handleTimer, interval);
log.debug('Started reload timer with id', this.timer, 'and interval of',
refresh, 'milliseconds');
interval, 'milliseconds');
}
}

Expand Down

0 comments on commit 7e0c820

Please sign in to comment.