mirror of https://github.com/vitalif/openscad
refactor fix: use hex timestamps
parent
acfd1e1b19
commit
fa8bed7726
|
@ -619,8 +619,7 @@ Module *Module::compile_library(std::string filename)
|
||||||
stat(filename.c_str(), &st);
|
stat(filename.c_str(), &st);
|
||||||
|
|
||||||
std::stringstream idstream;
|
std::stringstream idstream;
|
||||||
// FIXME: stream as hex
|
idstream << std::hex << st.st_mtime << "." << st.st_size;
|
||||||
idstream << st.st_mtime << "." << st.st_size;
|
|
||||||
std::string cache_id = idstream.str();
|
std::string cache_id = idstream.str();
|
||||||
|
|
||||||
if (libs_cache.find(filename) != libs_cache.end() && libs_cache[filename].cache_id == cache_id) {
|
if (libs_cache.find(filename) != libs_cache.end() && libs_cache[filename].cache_id == cache_id) {
|
||||||
|
|
Loading…
Reference in New Issue