Skip to content

Commit

Permalink
spelling: subtracting
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <jsoref@gmail.com>
  • Loading branch information
jsoref authored and Christian Brauner committed Nov 22, 2018
1 parent 8ecfc43 commit 6946331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/log.c
Expand Up @@ -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));
Expand Down

0 comments on commit 6946331

Please sign in to comment.