mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-19 04:41:15 -03:00
Additional warnings cleanup, effective C++ violations, dead code removal
This commit is contained in:
@@ -2038,7 +2038,7 @@ void set_env_cmd_duration(struct timeval *after, struct timeval *before)
|
||||
} else if (secs < 5400) { // 1.5 hours
|
||||
swprintf(buf, 16, L"%lum %lus", secs / 60, secs % 60);
|
||||
} else {
|
||||
swprintf(buf, 16, L"%.1fh", secs / 3600.0f);
|
||||
swprintf(buf, 16, L"%.1fh", secs / 3600.0);
|
||||
}
|
||||
env_set( ENV_CMD_DURATION, buf, ENV_EXPORT );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user