Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
111
Issues
111
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
9075732e
Commit
9075732e
authored
Apr 14, 2015
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add method to bump the extension count/days stats.
parent
ecc4ac3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
www/aptui/instance_defs.php
www/aptui/instance_defs.php
+10
-0
No files found.
www/aptui/instance_defs.php
View file @
9075732e
...
...
@@ -288,6 +288,16 @@ class Instance
" extension_reason='
$safe_reason
' "
.
"where uuid='
$uuid
'"
);
}
function
BumpExtensionCount
(
$granted
)
{
$uuid
=
$this
->
uuid
();
DBQueryWarn
(
"update apt_instances set "
.
" extension_count=extension_count+1, "
.
" extension_days=extension_days+${granted} "
.
"where uuid='
$uuid
'"
);
}
#
# Permission check; does user have permission to view instance.
#
...
...
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