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
aeed9520
Commit
aeed9520
authored
Oct 19, 2005
by
Leigh B. Stoller
Browse files
As per Jay's request, change the message at the top of the activity log
to include the date and the experiment index.
parent
e244219f
Changes
2
Hide whitespace changes
Inline
Side-by-side
tbsetup/libtestbed.pm.in
View file @
aeed9520
...
...
@@ -14,7 +14,7 @@ use Exporter;
qw
(
SENDMAIL
OPENMAIL
TBTimeStamp
TBBackGround
TBDateTimeFSSafe
TBMakeLogname
TB_BOSSNODE
TB_OPSEMAIL
TBGenSecretKey
TBDebugTimeStamp
TBDebugTimeStampsOn
TBForkCmd
TB_BOSSEVENTPORT
TB_EVENTSERVER
TBScriptLock
TBScriptUnlock
TBScriptLock
TBScriptUnlock
TBTimeStampWithDate
TBSCRIPTLOCK_OKAY
TBSCRIPTLOCK_TIMEDOUT
TBSCRIPTLOCK_IGNORE
TBSCRIPTLOCK_FAILED
);
...
...
@@ -161,6 +161,11 @@ sub TBTimeStamp()
return
POSIX
::
strftime
(
"%H:%M:%S"
,
localtime
($
seconds
))
.
":$microseconds"
;
}
sub
TBTimeStampWithDate
()
{
return
POSIX
::
strftime
(
"%m/%d/20%y %H:%M:%S"
,
localtime
());
}
#
#
Another
routine
for
creating
a
file
name
based
on
the
current
date
and
#
time
.
The
format
is
slightly
different
so
that
it
can
be
a
proper
filename
.
...
...
tbsetup/tbswap.in
View file @
aeed9520
...
...
@@ -160,8 +160,11 @@ TBDebugTimeStampsOn();
#
# Print starting message.
#
my
$exptidx
;
TBExptIDX
(
$pid
,
$eid
,
\
$exptidx
);
print
"
Beginning swap-
$swapop
for
$pid
/
$eid
.
"
.
TBTimeStamp
()
.
"
\n
";
print
"
Beginning swap-
$swapop
for
$pid
/
$eid
(
$exptidx
).
"
.
TBTimeStampWithDate
()
.
"
\n
";
TBDebugTimeStamp
("
tbswap
$swapop
started
");
#
...
...
Write
Preview
Supports
Markdown
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