aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mageiaSync/mageiaSyncExt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mageiaSync/mageiaSyncExt.py b/mageiaSync/mageiaSyncExt.py
index b57fef8..05274d6 100644
--- a/mageiaSync/mageiaSyncExt.py
+++ b/mageiaSync/mageiaSyncExt.py
@@ -152,7 +152,7 @@ class syncThread(QThread):
remain=re.findall("[0-9]*:[0-9]*:[0-9]*",buf)
sizeB=re.findall("[1-9](?:\d{0,2})(?:,\d{3})*",buf)
if len(progressL) != 0:
- progress= eval(progressL[0])
+ progress= float(progressL[0])
self.progressSignal.emit(progress)
if len(sizeB) != 0:
self.sizeSignal.emit(sizeB[0].replace(","," "))
@@ -160,10 +160,10 @@ class syncThread(QThread):
if (len(buf) !=0):
self.lvM.emit(buf.rstrip())
if len(speedK) != 0:
- speed= eval(speedK[0])
+ speed= float(speedK[0])
self.speedSignal.emit(speed)
if len(speedM) != 0:
- speed= 1024*eval(speedM[0])
+ speed= 1024*float(speedM[0])
self.speedSignal.emit(speed)
if len(remain) != 0:
self.remainSignal.emit(remain[0])