(legacy) replace time with microtime in make_config_revision_entry, not needed for the config revision anymore because that method uses it's own timestamp. Revision entries are also used on some other config items, like firewall rules.

This commit is contained in:
Ad Schellevis 2015-09-21 11:30:33 +00:00
parent ef787b91a2
commit 19a5fc38c9

View File

@ -341,15 +341,8 @@ function make_config_revision_entry($desc = null, $override_user = null)
}
$revision = array();
$revision['username'] = $username;
$revision['time'] = time();
if ($revision['time'] == $config['revision']['time']) {
/* avoid conflicting timestamps (a second is long) */
$revision['time'] = intval($revision['time']) + 1;
}
$revision['time'] = microtime(true);
if ($desc == null || $desc == 'Unknown') {
$revision['description'] = sprintf(gettext("%s made unknown change"), $_SERVER['SCRIPT_NAME']);
} else {