]> AND Private Git Repository - Cipher_code.git/blobdiff - measure_energy_iot/client_tcp4.py
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
new
[Cipher_code.git] / measure_energy_iot / client_tcp4.py
index b163376f731e373028e1e718df283301ff2e67bf..542a7ae3c6dd26e24372e9d06c40cd538b927036 100644 (file)
@@ -75,7 +75,7 @@ for i in range(nb_times):
     im2.save(buf, "JPEG", quality=quality)
     
 elapsed_time += time.time() - t
     im2.save(buf, "JPEG", quality=quality)
     
 elapsed_time += time.time() - t
-print("compute scale jpg ",elapsed_time/nb_times, " / size of file ",Path('lena3.jpg').stat().st_size)
+print("compute scale jpg ",elapsed_time/nb_times, " / size of file ",Path('lena3.jpg').stat().st_size)
 
 
 
 
 
 
@@ -132,5 +132,5 @@ with s:
             sbuf.put_bytes(f.read())
  #       print('File Sent')
     elapsed_time += time.time() - t    
             sbuf.put_bytes(f.read())
  #       print('File Sent')
     elapsed_time += time.time() - t    
-    print("send scale jpg ",elapsed_time/nb_times)
+    print("send scale jpg ",elapsed_time/nb_times)