mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Merge pull request #2872 from weaveworks/small-mem-reductions
Small memory-allocation reduction
This commit is contained in:
@@ -238,6 +238,9 @@ func renderTime(t time.Time) string {
|
||||
}
|
||||
|
||||
func parseTime(s string) time.Time {
|
||||
if s == "" {
|
||||
return time.Time{}
|
||||
}
|
||||
t, _ := time.Parse(time.RFC3339Nano, s)
|
||||
return t
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user