mirror of
https://github.com/pablorevilla-meshtastic/meshview.git
synced 2026-11-05 21:32:48 +01:00
Stop trusting the client's clock.
This commit is contained in:
1 parent
06c16806f2
commit
df33c43d1c
1 file changed
+1
-3
+1
-3
@@ -448,9 +448,7 @@ async def graph_power(request):
|
||||
continue
|
||||
if not payload.HasField('device_metrics'):
|
||||
continue
|
||||
timestamp = datetime.datetime.fromtimestamp(payload.time)
|
||||
if timestamp.year < 2000:
|
||||
continue
|
||||
timestamp = p.import_time
|
||||
date.append(timestamp)
|
||||
battery.append(payload.device_metrics.battery_level)
|
||||
voltage.append(payload.device_metrics.voltage)
|
||||
|
||||
Reference in new issue
Block a user