bootchart: fix a -Wshadow warning for "now"

This commit is contained in:
Auke Kok
2013-01-10 15:21:52 -05:00
committed by Zbigniew Jędrzejewski-Szmek
parent a2e9b33808
commit 2c408fbf64
+3 -3
View File
@@ -39,11 +39,11 @@ DIR *proc;
double gettime_ns(void)
{
struct timespec now;
struct timespec n;
clock_gettime(CLOCK_MONOTONIC, &now);
clock_gettime(CLOCK_MONOTONIC, &n);
return (now.tv_sec + (now.tv_nsec / 1000000000.0));
return (n.tv_sec + (n.tv_nsec / 1000000000.0));
}