Add "last 6 hours" to lmcli ls
categories
This commit is contained in:
parent
6af9377cf5
commit
6fde3f8932
@ -61,6 +61,7 @@ var lsCmd = &cobra.Command{
|
||||
categories := []string{
|
||||
"recent",
|
||||
"last hour",
|
||||
"last 6 hours",
|
||||
"last day",
|
||||
"last week",
|
||||
"last month",
|
||||
@ -82,6 +83,8 @@ var lsCmd = &cobra.Command{
|
||||
category = "recent"
|
||||
case messageAge <= time.Hour:
|
||||
category = "last hour"
|
||||
case messageAge <= 6*time.Hour:
|
||||
category = "last 6 hours"
|
||||
case messageAge <= 24*time.Hour:
|
||||
category = "last day"
|
||||
case messageAge <= 7*24*time.Hour:
|
||||
|
Loading…
Reference in New Issue
Block a user