summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-02 03:38:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-02 03:38:31 +0200
commite63fe3b8d058bed15d65728f8e9a7e4093040028 (patch)
treecffb5ac5bef221fdf9612ed82b17dd76a4ddcd04 /src/fastd.h
parent546ac7936340312cf272969ff83317ae4d50d2b4 (diff)
downloadfastd-e63fe3b8d058bed15d65728f8e9a7e4093040028.tar
fastd-e63fe3b8d058bed15d65728f8e9a7e4093040028.zip
Don't use exponential notation for integers
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 5619e66..c52a690 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -439,7 +439,7 @@ static inline bool timespec_after(const struct timespec *tp1, const struct times
/** Returns (\a tp1 - \a tp2) in milliseconds */
static inline int timespec_diff(const struct timespec *tp1, const struct timespec *tp2) {
- return ((tp1->tv_sec - tp2->tv_sec))*1000 + (tp1->tv_nsec - tp2->tv_nsec)/1e6;
+ return ((tp1->tv_sec - tp2->tv_sec))*1000 + (tp1->tv_nsec - tp2->tv_nsec)/1000000;
}
/**