Skip to contentSkip to conversation

perf top: Use MSEC_PER_SEC

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Aug 24, 2016 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  b9c4b0f40d22d4b1d29540f5faf6ca4269f25848
Gitweb:     http://git.kernel.org/tip/b9c4b0f40d22d4b1d29540f5faf6ca4269f25848
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Mon, 8 Aug 2016 15:37:58 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Tue, 23 Aug 2016 15:37:33 -0300

perf top: Use MSEC_PER_SEC

---
 tools/perf/builtin-top.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/perf/builtin-top.c +2 -1
index 418ed94..a3223aa 100644
@@ -68,6 +68,7 @@
 #include <sys/mman.h>
 
 #include <linux/stringify.h>
+#include <linux/time64.h>
 #include <linux/types.h>
 
 static volatile int done;
@@ -624,7 +625,7 @@ static void *display_thread(void *arg)
 	display_setup_sig();
 	pthread__unblock_sigwinch();
 repeat:
-	delay_msecs = top->delay_secs * 1000;
+	delay_msecs = top->delay_secs * MSEC_PER_SEC;
 	set_term_quiet_input(&save);
 	/* trash return*/
 	getc(stdin);