Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/configuration/persistence.md
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,7 @@ To persist an Item called `Lights` in an rrd4j database, you would enter the fol
To get the time of the last change of an Item `Humidity` from the default persistence service, default to the current time if the last persisted state is different from the current state:

```java
var lastChange = Humidity.lastChange()
lastChange = (lastChange !== null) ? lastChange : now
val lastChange = Humidity.lastChange ?: now
```

To get the average temperature over the last 5 minutes from the Item called `Temperature` in the influxdb persistence service, you would use:
Expand Down