use string-concatenation instead of sprintf for simple cases

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2020-09-29 13:38:06 +02:00
parent ecfad5a118
commit 8bf216728c
16 changed files with 44 additions and 47 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ func GetProcessStartTime(pid int) (string, error) {
if err != nil {
return "", err
}
return fmt.Sprintf("%d", stat.StartTime), nil
return strconv.FormatUint(stat.StartTime, 10), nil
}
func parseStat(data string) (stat Stat_t, err error) {