mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 09:28:40 +02:00
Disk: Use std::chrono::seconds for CacheTime
This fixes an issue with MSVC
This commit is contained in:
@@ -27,7 +27,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr const uint8_t MemoryTypeSD = 0x01; // Logical Disk
|
static constexpr const uint8_t MemoryTypeSD = 0x01; // Logical Disk
|
||||||
static constexpr const std::chrono::duration CacheTime = std::chrono::seconds(1);
|
static constexpr const std::chrono::seconds CacheTime = std::chrono::seconds(1);
|
||||||
|
|
||||||
std::array<uint8_t, SectorSize> cache;
|
std::array<uint8_t, SectorSize> cache;
|
||||||
uint64_t cachePos = 0;
|
uint64_t cachePos = 0;
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
static constexpr const uint32_t MaxSize = 65024;
|
static constexpr const uint32_t MaxSize = 65024;
|
||||||
static constexpr const std::chrono::duration CacheTime = std::chrono::seconds(1);
|
static constexpr const std::chrono::seconds CacheTime = std::chrono::seconds(1);
|
||||||
|
|
||||||
std::array<uint8_t, MaxSize> cache;
|
std::array<uint8_t, MaxSize> cache;
|
||||||
uint64_t cachePos = 0;
|
uint64_t cachePos = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user