projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dfb59a3
)
pintos: Avoid literal control character in Perl variable name.
author
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 9 Feb 2016 04:47:10 +0000
(20:47 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Tue, 9 Feb 2016 04:47:10 +0000
(20:47 -0800)
Modern versions of Perl prefer a caret in variable names over literal
control characters and issue a warning if the control character is used.
This fixes the warning.
src/utils/pintos
patch
|
blob
|
history
diff --git
a/src/utils/pintos
b/src/utils/pintos
index 156421649d943356fe69e2447e55a307bf84fd91..2ebe642a5d1de310121d7f9acb2989cabb181b84 100755
(executable)
--- a/
src/utils/pintos
+++ b/
src/utils/pintos
@@
-912,7
+912,7
@@
sub get_load_average {
# Calls setitimer to set a timeout, then execs what was passed to us.
sub exec_setitimer {
if (defined $timeout) {
- if ($
\16
ge 5.8.0) {
+ if ($
^V
ge 5.8.0) {
eval "
use Time::HiRes qw(setitimer ITIMER_VIRTUAL);
setitimer (ITIMER_VIRTUAL, $timeout, 0);