소스 검색

Always annouce lamp status when over 90% of life

Zachary Kotlarek 12 년 전
부모
커밋
70c00a1df8
1개의 변경된 파일과 1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      dmx/projectorPower.pl

+ 1 - 4
dmx/projectorPower.pl

@@ -296,10 +296,7 @@ while (1) {
 		# Announce lamp life status, if near/past $LAMP_LIFE
 		if (exists($exists{'PROJECTOR_LAMP'})) {
 			if ($life > 0.9) {
-				my $chance = ($life - 0.9) * 10;
-				if (rand(1) <= $chance) {
-					DMX::say('Projector lamp has run for ' . int($life * 100) . '% of its projected life.');
-				}
+				DMX::say('Projector lamp has run for ' . int($life * 100) . '% of its projected life.');
 			}
 		}