Unverified Commit 69463317 by Josh Soref Committed by Christian Brauner

spelling: subtracting

Signed-off-by: 's avatarJosh Soref <jsoref@gmail.com>
parent 8ecfc43a
...@@ -258,13 +258,13 @@ static int lxc_unix_epoch_to_utc(char *buf, size_t bufsize, const struct timespe ...@@ -258,13 +258,13 @@ static int lxc_unix_epoch_to_utc(char *buf, size_t bufsize, const struct timespe
/* Transform hours to seconds. */ /* Transform hours to seconds. */
h_in_s = hours * 3600; 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 * epoch and for all hours in the epoch and divide by the number of
* minutes in an hour. * minutes in an hour.
*/ */
minutes = (time->tv_sec - d_in_s - h_in_s) / 60; 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. * epoch, hours in the epoch and minutes in the epoch.
*/ */
seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60)); seconds = (time->tv_sec - d_in_s - h_in_s - (minutes * 60));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment