Skip to content

Commit d2ff899

Browse files
committed
fix: Fixes from review
1 parent d1515b1 commit d2ff899

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/DIRAC/MonitoringSystem/private/DBUtils.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,14 @@ def _getAccumulationMaxValue(self, dataDict):
157157
maxValue += currentDict[timeEpoch]
158158
return maxValue
159159

160-
def _accumulate(self, granularity, startEpoch, endEpoch, dataDict):
160+
@staticmethod
161+
def _accumulate(granularity, startEpoch, endEpoch, dataDict):
161162
"""
162-
Accumulate all the values.
163+
Accumulates all the values and builds the dataDict used to plot.
164+
Used in DataOperationPlotter.
165+
- granularity: bucket size
166+
- startTime: epoch time
167+
- endTime: epoch time
163168
- dataDict = { 'key' : { time1 : value, time2 : value... }, 'key2'.. }
164169
"""
165170
startBucketEpoch = startEpoch - startEpoch % granularity

0 commit comments

Comments
 (0)