Skip to content

Commit

Permalink
v0.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Sep 6, 2019
1 parent 2c5a016 commit 9c92948
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog

## v0.3.0

IMPORTANT: This release moves `Nerves.Time` to the `NervesTime` namespace. If
you are using the API, you will need to rename every instance of `Nerves.Time`
in your code to `NervesTime`.

* Bug fixes
* `ntpd` crash detection and restart have been simplified by using
`MuonTrap.Daemon`. This should fix an issue that was seen with `ntpd` not
getting restarted after it crashed.
* `NervesTime.synchronized?/0` would return synchronized when changing NTP
servers and right after restarting `ntpd`. It will return `false` now and
switch to `true` when time really has been synchronized.

* Improvements
* Simplified ntpd reporting code. No more regular expressions. Reports are
sent via a Unix Domain socket and encoded as Erlang terms. This deleted a
lot of string parsing code that felt brittle.
* Added a restart delay on unclean `ntpd` restarts to prevent pegging public
NTP servers. The delay is currently a minute since `ntpd` crashes are not
well-understood. Luckily, this seems like a rare event.
* Added more tests to cover NTP use

## v0.2.1

* Improvements
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule NervesTime.MixProject do
use Mix.Project

@version "0.2.1"
@version "0.3.0"
@source_url "https://github.com/fhunleth/nerves_time"

def project do
Expand Down

0 comments on commit 9c92948

Please sign in to comment.