[pitivi: 16/27] Divide the summation by 10 to compensate the use of scientific notation
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi: 16/27] Divide the summation by 10 to compensate the use of scientific notation
- Date: Wed, 11 May 2011 14:06:31 +0000 (UTC)
commit bac85cae47f2203207bf9e3c675e1f3fd3599aa0
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Fri Dec 24 17:02:58 2010 -0500
Divide the summation by 10 to compensate the use of scientific notation
pitivi/utils.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/utils.py b/pitivi/utils.py
index ec63900..75dc705 100644
--- a/pitivi/utils.py
+++ b/pitivi/utils.py
@@ -72,7 +72,8 @@ def string_to_time(timecode):
+ int(mm) * 6 * 10e10 \
+ int(ss) * 10e9 \
+ int(xxx) * 10e6
- return int(nanosecs)
+ nanosecs = nanosecs / 10 # Compensate the 10 factor of e notation
+ return nanosecs
except:
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]