[gnome-shell] [perf] Fix factor of ten in seconds => microseconds conversion
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [perf] Fix factor of ten in seconds => microseconds conversion
- Date: Mon, 24 May 2010 04:14:55 +0000 (UTC)
commit cbde065a01677534109ad92408abe538801e91a2
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon May 24 00:08:00 2010 -0400
[perf] Fix factor of ten in seconds => microseconds conversion
Typo: 10000000 instead of 1000000 for a million. Also, use
G_INT64_CONSTANT instead of LL for a 64-bit constant, to avoid
extraneous 128-bit arithmetic on 64-bit machines.
src/shell-perf-log.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/shell-perf-log.c b/src/shell-perf-log.c
index 262e47e..48ebaff 100644
--- a/src/shell-perf-log.c
+++ b/src/shell-perf-log.c
@@ -130,7 +130,7 @@ get_time (void)
g_get_current_time (&timeval);
- return timeval.tv_sec * 10000000LL + timeval.tv_usec;
+ return timeval.tv_sec * G_GINT64_CONSTANT(1000000) + timeval.tv_usec;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]