Skip to content

Commit

Permalink
fix: seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
VentelR committed Apr 9, 2024
1 parent 4f7ecbb commit cce144f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modular_ss220/pt_monitor/code/items/pt_monitor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define SENSOR_TEMPERATURE (1<<1)
#define NO_DATA_VALUE null
#define MAX_RECORD_SIZE 20
#define RECORD_INTERVAL 3
#define LONG_RECORD_INTERVAL 30
#define RECORD_INTERVAL 3 SECONDS
#define LONG_RECORD_INTERVAL 30 SECONDS
#define LAZYINITLISTSIZED(L, N) if(!L) L = new/list(N)
#define ADD_TO_HISTORY(history_list, measurement) \
history_list += measurement; \
Expand Down Expand Up @@ -63,11 +63,11 @@

if(current_time < next_record_time)
return
next_record_time = current_time + RECORD_INTERVAL SECONDS
next_record_time = current_time + RECORD_INTERVAL

if(current_time >= next_long_record_time)
log_long_record = TRUE
next_long_record_time = current_time + LONG_RECORD_INTERVAL SECONDS
next_long_record_time = current_time + LONG_RECORD_INTERVAL

for(var/sensor_name in sensor_name_uid_map)
var/obj/machinery/atmospherics/atmos_sensor = locateUID(sensor_name_uid_map[sensor_name])
Expand Down

0 comments on commit cce144f

Please sign in to comment.