From: Josh Soref Date: Tue, 30 Oct 2018 08:11:56 +0000 (+0000) Subject: spelling: subtracting X-Git-Tag: lxc-4.0.0~372^2~6 X-Git-Url: https://git.proxmox.com/?p=mirror_lxc.git;a=commitdiff_plain;h=29fa2d33b43a9bd2d92820a50adb19d562498102 spelling: subtracting Signed-off-by: Josh Soref --- diff --git a/src/lxc/log.c b/src/lxc/log.c index 71e0618c7..2f1a9385e 100644 --- a/src/lxc/log.c +++ b/src/lxc/log.c @@ -258,13 +258,13 @@ static int lxc_unix_epoch_to_utc(char *buf, size_t bufsize, const struct timespe /* Transform hours to seconds. */ h_in_s = hours * 3600; - /* Calculate minutes by substracting the seconds for all days in the + /* Calculate minutes by subtracting the seconds for all days in the * epoch and for all hours in the epoch and divide by the number of * minutes in an hour. */ minutes = (time->tv_sec - d_in_s - h_in_s) / 60; - /* Calculate the seconds by substracting the seconds for all days in the + /* Calculate the seconds by subtracting the seconds for all days in the * epoch, hours in the epoch and minutes in the epoch. */ seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));