projects
/
experiments
/
fps-limit.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4e782b
)
Revert "Use exponential notation for big multiples of 10"
author
Antonio Ospite <ospite@studenti.unina.it>
Thu, 25 Jul 2013 16:10:12 +0000
(18:10 +0200)
committer
Antonio Ospite <ospite@studenti.unina.it>
Thu, 25 Jul 2013 16:10:12 +0000
(18:10 +0200)
This reverts commit
a4e782b24f912e26396a94ceed35856da5afc1a1
.
Numbers expressed in scientific notation are of type "double", an
integer type is enough here.
fps-limit.c
patch
|
blob
|
history
diff --git
a/fps-limit.c
b/fps-limit.c
index
a5d00a7
..
3ed784f
100644
(file)
--- a/
fps-limit.c
+++ b/
fps-limit.c
@@
-34,7
+34,7
@@
#define FPS 60
#define FPS 60
-#define NSEC_PER_SEC 1
e9
+#define NSEC_PER_SEC 1
000000000
#define timespecsub(a, b, result) \
do { \
#define timespecsub(a, b, result) \
do { \
@@
-42,7
+42,7
@@
(result)->tv_nsec = (a)->tv_nsec - (b)->tv_nsec; \
if ((result)->tv_nsec < 0) { \
--(result)->tv_sec; \
(result)->tv_nsec = (a)->tv_nsec - (b)->tv_nsec; \
if ((result)->tv_nsec < 0) { \
--(result)->tv_sec; \
- (result)->tv_nsec += 1
e9;
\
+ (result)->tv_nsec += 1
000000000;
\
} \
} while(0)
} \
} while(0)