sgwdynspeed: cache the correct timestamp
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 15 Oct 2015 09:58:17 +0000 (11:58 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 15 Oct 2015 12:47:57 +0000 (14:47 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/sgwdynspeed/src/speedFile.c

index fa4fb69..4315569 100644 (file)
@@ -224,7 +224,7 @@ void readSpeedFile(char * fileName) {
                goto out;
        }
 
-       memcpy(&cachedStat.timeStamp, &statBuf.st_mtime, sizeof(cachedStat.timeStamp));
+       memcpy(&cachedStat.timeStamp, mtim, sizeof(cachedStat.timeStamp));
 
        while (fgets(line, LINE_LENGTH, fp)) {
                regmatch_t pmatch[regexNameValuematchCount];