mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-10 23:57:38 +00:00
server/red_worker: stat_now cleanup
static, remove inline, add (void), and empty line after function variables.
This commit is contained in:
parent
db7d6c866e
commit
34949178a8
@ -118,9 +118,10 @@ static clockid_t clock_id;
|
||||
|
||||
typedef unsigned long stat_time_t;
|
||||
|
||||
inline stat_time_t stat_now()
|
||||
static stat_time_t stat_now(void)
|
||||
{
|
||||
struct timespec ts;
|
||||
|
||||
clock_gettime(clock_id, &ts);
|
||||
return ts.tv_nsec + ts.tv_sec * 1000 * 1000 * 1000;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user