Browse Source

Transférer les fichiers vers 'src'

master
joanluc 4 months ago
parent
commit
642b633257
  1. 16
      src/procDataConso.py

16
src/procDataConso.py

@ -28,9 +28,10 @@ class ProcDataConso():
et a 0 des valeurs de consommation
de donnees
"""
self.threads=dict()
self.threads=[]
for i in range(0,self.nbr):
self.threads[i]=("thread_"+str(i):0)
thread=("thread_"+str(i),0)
self.threads.append(thread)
def __getMeasure(self,
measureMedia="manuel"):
@ -41,7 +42,7 @@ class ProcDataConso():
measureMedia
"""
if (measureMedia=="manuel"):
return (input("Mesute ?"))
return (int(input("Mesure ? ")))
else:
# saisie automatique fonction du
# type de mesure realisee
@ -63,14 +64,15 @@ class ProcDataConso():
for i in range(0,self.nbr):
# thread=input("Nom thread ? ")
c0=self.threads[i-1]()0
c=self.dataConsoMeasure(self,c[i-1])
self.threads[i]=(nm[i],
"thread_"+str(i),c)
c0=self.threads[i-1][1]
c=self.dataConsoMeasure(c0)
thread=("thread_"+str(i),c)
self.threads.append(thread)
def test_procDataConso():
myConso=ProcDataConso(input("Nom process ? "))
myConso.dataConsoReg()
print(format(myConso.threads))
if __name__ == "__main__":
test_procDataConso()
Loading…
Cancel
Save