mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-05 20:41:44 -07:00
Updater code, work in progress...
This commit is contained in:
parent
e4044eeb70
commit
ae138566a9
8 changed files with 337 additions and 6 deletions
|
@ -265,6 +265,16 @@ uint64_t Utils::getLastModified(const char *path)
|
|||
return (((uint64_t)s.st_mtime) * 1000ULL);
|
||||
}
|
||||
|
||||
static int64_t getFileSize(const char *path)
|
||||
{
|
||||
struct stat s;
|
||||
if (stat(path,&s))
|
||||
return -1;
|
||||
if (S_ISREG(s.st_mode))
|
||||
return s.st_size;
|
||||
return -1;
|
||||
}
|
||||
|
||||
std::string Utils::toRfc1123(uint64_t t64)
|
||||
{
|
||||
struct tm t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue