diff options
| author | Christian Cleberg <[email protected]> | 2026-07-14 20:23:47 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-14 20:23:47 -0500 |
| commit | 5756a37bc14bab81cef2e305c504a396995dcf18 (patch) | |
| tree | e8d99d6cc87a17e83f90be8c30ee3a73003f04be /app/stat-darwin.go | |
| parent | f4afe364c1885b55d3bd92d1aa2f00c4bb7c8ee2 (diff) | |
| parent | 369fd17e696699b9b1aa1ac8293e0122c7e3a41e (diff) | |
| download | skunky-art-5756a37bc14bab81cef2e305c504a396995dcf18.tar.gz skunky-art-5756a37bc14bab81cef2e305c504a396995dcf18.tar.bz2 skunky-art-5756a37bc14bab81cef2e305c504a396995dcf18.zip | |
Merge dev: devianter v0.3.1 migration, DA throttle, fixes
Migrate to github.com/zerolabsco/devianter v0.3.1 and adapt to its
reordered return values, throttle outbound DeviantArt requests, harden
the random-art retry loop, and fix the darwin build.
Diffstat (limited to 'app/stat-darwin.go')
| -rw-r--r-- | app/stat-darwin.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/stat-darwin.go b/app/stat-darwin.go new file mode 100644 index 0000000..f3e05bc --- /dev/null +++ b/app/stat-darwin.go @@ -0,0 +1,15 @@ +//go:build darwin +// +build darwin + +package app + +import ( + "syscall" + "time" +) + +// macOS names the ctime field Ctimespec rather than Ctim, so it needs its own +// variant to let the project build and test on a Mac (deploys are Linux). +func statTime(stat *syscall.Stat_t) int64 { + return time.Unix(stat.Ctimespec.Unix()).UnixMilli() +} |
