summaryrefslogtreecommitdiffstats
path: root/glances/standalone.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/standalone.py')
-rw-r--r--glances/standalone.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/glances/standalone.py b/glances/standalone.py
index c90b927c..197ab7c4 100644
--- a/glances/standalone.py
+++ b/glances/standalone.py
@@ -142,12 +142,6 @@ class GlancesStandalone(object):
self.stats.update()
logger.debug('Stats updated duration: {} seconds'.format(counter.get()))
- # Export stats
- # Start a counter used to compute the time needed
- counter_export = Counter()
- self.stats.export(self.stats)
- logger.debug('Stats exported duration: {} seconds'.format(counter_export.get()))
-
# Patch for issue1326 to avoid < 0 refresh
adapted_refresh = self.refresh_time - counter.get()
adapted_refresh = adapted_refresh if adapted_refresh > 0 else 0
@@ -164,6 +158,12 @@ class GlancesStandalone(object):
time.sleep(adapted_refresh)
ret = True
+ # Export stats
+ # Start a counter used to compute the time needed
+ counter_export = Counter()
+ self.stats.export(self.stats)
+ logger.debug('Stats exported duration: {} seconds'.format(counter_export.get()))
+
return ret
def serve_n(self, n=1):