logging_helpers   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A get_when_to_notify() 0 10 2
1
def get_when_to_notify(
2
    data_length: int, notification_percentage_interval: int
3
) -> list[int]:
4
    notify_at_indexes: list[int] = []
5
    for i in range(1, int(100 / notification_percentage_interval) - 1):
6
        notify_at_index = int(
7
            data_length * (notification_percentage_interval / 100) * i
8
        )
9
        notify_at_indexes.append(notify_at_index + 1)
10
    return notify_at_indexes
11