]> git.tuebingen.mpg.de Git - paraslash.git/commit
mood.c: Improve log output for current mood.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 4 Apr 2016 22:44:42 +0000 (00:44 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 31 Jul 2016 14:54:52 +0000 (16:54 +0200)
commitc4a33d828f6e7111b9fa4386b9916a8f4a7fb820
treedce9d54f19487e19f2e0c9460fe1eea404380878
parent2b12fc963d15219721dd23eb7947bf516f2ad574
mood.c: Improve log output for current mood.

When a new mood is loaded, we print some information about the score
table, like the number of admissible files, the average last_played
and num_played values, and the empiric standard deviation of these
quantities. However, since last_played is measured in seconds after
the epoch, the reported numbers are rather large.

This commit changes log_statistics() of mood.c to report the mean
value and the standard deviation in number of days.

Since loading a new mood happens not very frequently, let's increase
the severity of these log messages from INFO to NOTICE. If the new
mood has no admissible files we now log the message as a warning
rather than with severity NOTICE.
mood.c