Ver código fonte

Be sure to overwrite the VALUE and STATUS to 0

Zachary Kotlarek 12 anos atrás
pai
commit
a7f09a50ce
1 arquivos alterados com 5 adições e 1 exclusões
  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'}) {
 		if ($file->{'attr'}->{'status'}) {
+
+			# Overwrite the mtime-based value
+			$file->{'value'} = 0;
+
 			my $text = '';
 			my $text = '';
 			{
 			{
 				if (!open(my $fh, $file->{'path'})) {
 				if (!open(my $fh, $file->{'path'})) {