File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,7 @@ let handle_comms comms_sock fd_sock state =
94
94
let log_failure args child_pid reason =
95
95
(* The commandline might be too long to clip it *)
96
96
let cmdline = String. concat " " args in
97
- let limit = 80 - 3 in
98
- let cmdline' =
99
- if String. length cmdline > limit then
100
- String. sub cmdline 0 limit ^ " ..."
101
- else
102
- cmdline
103
- in
104
- Fe_debug. error " %d (%s) %s" child_pid cmdline' reason
97
+ Fe_debug. error " %d (%s) %s" child_pid cmdline reason
105
98
106
99
let report_child_exit comms_sock args child_pid status =
107
100
let module Unixext = Xapi_stdext_unix. Unixext in
Original file line number Diff line number Diff line change @@ -1160,15 +1160,8 @@ let options_of_xapi_globs_spec =
1160
1160
string_of_float ! x
1161
1161
| Int x ->
1162
1162
string_of_int ! x
1163
- | ShortDurationFromSeconds x ->
1164
- let literal =
1165
- Mtime.Span. to_uint64_ns ! x |> fun ns ->
1166
- Int64. div ns 1_000_000_000L |> Int64. to_int |> string_of_int
1167
- in
1168
- Fmt. str " %s (%a)" literal Mtime.Span. pp ! x
1169
- | LongDurationFromSeconds x ->
1170
- let literal = Clock.Timer. span_to_s ! x |> string_of_float in
1171
- Fmt. str " %s (%a)" literal Mtime.Span. pp ! x
1163
+ | ShortDurationFromSeconds x | LongDurationFromSeconds x ->
1164
+ Fmt. str " %Luns (%a)" (Mtime.Span. to_uint64_ns ! x) Mtime.Span. pp ! x
1172
1165
)
1173
1166
, Printf. sprintf " Set the value of '%s'" name
1174
1167
)
You can’t perform that action at this time.
0 commit comments