mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
use string-concatenation instead of sprintf for simple cases
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user