config test
This commit is contained in:
parent
eb7816e0f5
commit
617d896c9f
@ -109,16 +109,21 @@ class Stats:
|
|||||||
if field in consolided:
|
if field in consolided:
|
||||||
if consolided[field] < int(line[3]):
|
if consolided[field] < int(line[3]):
|
||||||
consolided[field] = int(line[3])
|
consolided[field] = int(line[3])
|
||||||
|
temp_cons = {}
|
||||||
for (k,v) in consolided.items():
|
for (k,v) in consolided.items():
|
||||||
|
temp_cons[k] = v
|
||||||
if 'bytes' in k:
|
if 'bytes' in k:
|
||||||
(v,u) = self.__conv(consolided[k])
|
(v,u) = self.__conv(consolided[k])
|
||||||
consolided[k] = f"{v} {u}"
|
temp_cons[k] = f"{v} {u}"
|
||||||
if 'seconds' in k:
|
if 'seconds' in k:
|
||||||
(v,u) = self.__conv(consolided[k],dataType='t')
|
(v,u) = self.__conv(consolided[k],dataType='t')
|
||||||
consolided.pop(k)
|
consolided.pop(k)
|
||||||
n_k = k.replace('_seconds','_time')
|
n_k = k.replace('_seconds','_time')
|
||||||
consolided[n_k] = f"{v} {u}"
|
temp_cons[n_k] = f"{v} {u}"
|
||||||
|
|
||||||
|
for (k,v) in temp_cons.items():
|
||||||
|
consolided[k] = temp_cons[k]
|
||||||
|
|
||||||
if moy_conf_by_day > 1:
|
if moy_conf_by_day > 1:
|
||||||
tot = consolided['conferences']
|
tot = consolided['conferences']
|
||||||
moy_conf_by_day = int(moy_conf_by_day / 12 + 0.5)
|
moy_conf_by_day = int(moy_conf_by_day / 12 + 0.5)
|
||||||
|
Loading…
Reference in New Issue
Block a user