mirror of
https://github.com/systemd/systemd.git
synced 2024-11-06 08:26:52 +03:00
bootchart: fix a -Wshadow warning for "now"
This commit is contained in:
parent
a2e9b33808
commit
2c408fbf64
@ -39,11 +39,11 @@ DIR *proc;
|
|||||||
|
|
||||||
double gettime_ns(void)
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user