* Do not show the time randomization to the user; filter it out again.
* Also, round the nano second times, and don't only cut them off. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32869 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
aa41802fa6
commit
214f370653
@ -178,7 +178,7 @@ class Volume;
|
||||
#define INODE_MAGIC1 0x3bbe0ad9
|
||||
#define INODE_FILE_NAME_LENGTH 256
|
||||
#define INODE_TIME_SHIFT 16
|
||||
#define INODE_TIME_MASK 0xffff
|
||||
#define INODE_TIME_MASK 0xfff0
|
||||
|
||||
inline uint32 unique_from_nsec(uint32 time);
|
||||
|
||||
@ -284,7 +284,7 @@ unique_from_nsec(uint32 time)
|
||||
{
|
||||
static vint32 number;
|
||||
if (time != 0)
|
||||
return ((time >> 14) & INODE_TIME_MASK) | (++number & 0xf);
|
||||
return (((time + 16383) >> 14) & INODE_TIME_MASK) | (++number & 0xf);
|
||||
|
||||
return ++number & 0xfff;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user