Skip to content

Commit adfa85e

Browse files
committed
chore: fix typos
1 parent 7598fbe commit adfa85e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

glances/exports/glances_graph/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from pygal import DateTimeLine
1818

1919
from glances.exports.export import GlancesExport
20-
from glances.globals import iteritems, time_serie_subsample
20+
from glances.globals import iteritems, time_series_subsample
2121
from glances.logger import logger
2222
from glances.timer import Timer
2323

@@ -120,7 +120,7 @@ def export(self, title, data):
120120
x_label_rotation=20,
121121
x_value_formatter=lambda dt: dt.strftime('%Y/%m/%d %H:%M:%S'),
122122
)
123-
for k, v in iteritems(time_serie_subsample(data, self.width)):
123+
for k, v in iteritems(time_series_subsample(data, self.width)):
124124
chart.add(k, v)
125125
chart.render_to_file(os.path.join(self.path, title + '.svg'))
126126
return True

glances/globals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def subsample(data, sampling):
166166
return [mean(data[s * sampling_length : (s + 1) * sampling_length]) for s in range(0, sampling)]
167167

168168

169-
def time_serie_subsample(data, sampling):
169+
def time_series_subsample(data, sampling):
170170
"""Compute a simple mean subsampling.
171171
172172
Data should be a list of set (time, value)

0 commit comments

Comments
 (0)