Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
3e01fcdd
Commit
3e01fcdd
authored
Feb 01, 2015
by
Mike Hibler
Browse files
Change goofy HH:MM:SS:uuuuuu timestamp to HH:MM:SS.uuuuuu ('.' not ':')
parent
7c40bc46
Changes
2
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/libsetup.pm
View file @
3e01fcdd
#!/usr/bin/perl -w
#
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
# Copyright (c) 2000-201
5
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -3653,7 +3653,8 @@ sub TBTimeStamp()
import
POSIX
qw(strftime)
;
$imported_POSIX
=
1
;
}
return
POSIX::
strftime
("
%H:%M:%S
",
localtime
(
$seconds
))
.
"
:
$microseconds
";
return
POSIX::
strftime
("
%H:%M:%S
",
localtime
(
$seconds
))
.
"
.
"
.
sprintf
("
%06d
",
$microseconds
);
}
sub
TBTimeStampWithDate
()
...
...
@@ -3672,8 +3673,8 @@ sub TBTimeStampWithDate()
$imported_POSIX
=
1
;
}
return
POSIX::
strftime
("
%m/%d/20%y %H:%M:%S
",
localtime
(
$seconds
))
.
"
:
$microseconds
"
;
return
POSIX::
strftime
("
%m/%d/20%y %H:%M:%S
",
localtime
(
$seconds
))
.
"
.
"
.
sprintf
("
%06d
",
$microseconds
)
;
}
#
...
...
clientside/tmcc/common/libtestbed.pm
View file @
3e01fcdd
#!/usr/bin/perl -wT
#
# Copyright (c) 2000-201
4
University of Utah and the Flux Group.
# Copyright (c) 2000-201
5
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -205,16 +205,16 @@ sub TBTimeStamp()
{
my
(
$seconds
,
$microseconds
)
=
gettimeofday
();
return
POSIX::
strftime
("
%H:%M:%S
",
localtime
(
$seconds
))
.
"
:
$microseconds
";
return
POSIX::
strftime
("
%H:%M:%S
",
localtime
(
$seconds
))
.
"
.
"
.
sprintf
("
%06d
",
$microseconds
);
}
sub
TBTimeStampWithDate
()
{
my
(
$seconds
,
$microseconds
)
=
gettimeofday
();
return
POSIX::
strftime
("
%m/%d/20%y %H:%M:%S
",
localtime
(
$seconds
))
.
"
:
$microseconds
";
return
POSIX::
strftime
("
%m/%d/20%y %H:%M:%S
",
localtime
(
$seconds
))
.
"
.
"
.
sprintf
("
%06d
",
$microseconds
);
}
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment