Explorar o código

Be sure to overwrite the VALUE and STATUS to 0

Zachary Kotlarek %!s(int64=12) %!d(string=hai) anos
pai
achega
a7f09a50ce
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      dmx/state.pl

+ 5 - 1
dmx/state.pl

@@ -413,8 +413,12 @@ while (1) {
 			}
 		}
 
-		# Grab the state from STATUS files
+		# Grab the state from STATUS files (including VALUE files)
 		if ($file->{'attr'}->{'status'}) {
+
+			# Overwrite the mtime-based value
+			$file->{'value'} = 0;
+
 			my $text = '';
 			{
 				if (!open(my $fh, $file->{'path'})) {