Skip to content

Commit

Permalink
Merge pull request #499 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 13.3.5
  • Loading branch information
andyone authored Aug 14, 2024
2 parents efa5ecc + ba43005 commit e1e17bb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### [13.3.5](https://kaos.sh/ek/13.3.5)

- `[timeutil]` Improved formatting of days and seconds in `MiniDuration`

### [13.3.4](https://kaos.sh/ek/13.3.4)

- `[timeutil]` Added support of minutes, hours and days to `MiniDuration`
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
################################################################################

export EK_TEST_PORT=8080
export CGO_ENABLED=1

ifdef VERBOSE ## Print verbose information (Flag)
VERBOSE_FLAG = -v
Expand Down
4 changes: 2 additions & 2 deletions timeutil/timeutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ func getPrettyShortDuration(d time.Duration, separator string) string {
switch {
case d >= 24*time.Hour:
return fmt.Sprintf(
"%.0g"+separator+"d",
"%.0f"+separator+"d",
formatFloat(float64(d)/float64(24*time.Hour)),
)

Expand All @@ -791,7 +791,7 @@ func getPrettyShortDuration(d time.Duration, separator string) string {

case d >= time.Second:
return fmt.Sprintf(
"%g"+separator+"s",
"%.2g"+separator+"s",
formatFloat(float64(d)/float64(time.Second)),
)

Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ package ek
// ////////////////////////////////////////////////////////////////////////////////// //

// VERSION is current ek package version
const VERSION = "13.3.4"
const VERSION = "13.3.5"

0 comments on commit e1e17bb

Please sign in to comment.