Просмотр исходного кода

Be sure to overwrite the VALUE and STATUS to 0

Zachary Kotlarek 12 лет назад
Родитель
Сommit
a7f09a50ce
1 измененных файлов с 5 добавлено и 1 удалено
  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'})) {