jarjonam %!s(int64=5) %!d(string=hai) anos
pai
achega
bf121bc588
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pi/server.py

+ 1 - 1
pi/server.py

@@ -27,7 +27,7 @@ def save_waveform():
 	timestamp = time.time()
 	print(wf_number, timestamp, last_wf_number, last_timestamp)
 	if(last_wf_number>0 and wf_number - last_wf_number>0):
-		state["board_freq"] = (timestamp - last_timestamp)/(wf_number - last_wf_number)
+		state["board_freq"] = (wf_number - last_wf_number)/(timestamp - last_timestamp)
 	else:
 		state["board_freq"] = 0
 	print(state["board_freq"])