Changeset 27 in code
- Timestamp:
- Aug 30, 2015, 12:45:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zs_ext.go
r26 r27 8 8 "time" 9 9 10 "math" 11 10 12 "github.com/drhodes/golorem" 11 "github.com/google/gxui/math"12 13 "github.com/jaytaylor/html2text" 13 14 ) … … 99 100 func TimeToRead(args []string) int { 100 101 wc := WordCount(args) 101 return int(math. Round(float64(wc) / float64(200)))102 return int(math.Floor(float64(wc)/200.0 + .5)) 102 103 }
Note:
See TracChangeset
for help on using the changeset viewer.