Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
agent
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
simmctic
agent
Commits
e0315ab5
There was a problem fetching the pipeline summary.
Commit
e0315ab5
authored
8 years ago
by
Clara Daia Hilgenberg Daru
Browse files
Options
Downloads
Patches
Plain Diff
Apply cpplint
parent
b288bc35
No related branches found
Branches containing commit
No related tags found
2 merge requests
!51
Merge development to master
,
!24
Issue/46
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/linux/get_disks_info.cpp
+2
-2
2 additions, 2 deletions
src/linux/get_disks_info.cpp
src/linux/inventory.cpp
+2
-2
2 additions, 2 deletions
src/linux/inventory.cpp
src/linux/open_file.cpp
+27
-6
27 additions, 6 deletions
src/linux/open_file.cpp
with
31 additions
and
10 deletions
src/linux/get_disks_info.cpp
+
2
−
2
View file @
e0315ab5
...
...
@@ -27,7 +27,7 @@
#include
"agent/linux/get_disks_info.h"
void
get_scsi_disks
(
std
::
list
<
disk_t
>&
disks
)
{
void
get_scsi_disks
(
std
::
list
<
disk_t
>&
disks
)
{
// NOLINT(runtime/references)
struct
udev
*
udev
;
struct
udev_enumerate
*
enumerate
;
...
...
@@ -108,7 +108,7 @@ void get_scsi_disks(std::list<disk_t>& disks) {
}
void
get_disks_info
(
std
::
list
<
disk_t
>&
disks
)
{
void
get_disks_info
(
std
::
list
<
disk_t
>&
disks
)
{
// NOLINT(runtime/references)
get_scsi_disks
(
disks
);
if
(
disks
.
empty
())
{
...
...
This diff is collapsed.
Click to expand it.
src/linux/inventory.cpp
+
2
−
2
View file @
e0315ab5
...
...
@@ -22,9 +22,9 @@
#include
<list>
#include
"agent/linux/inventory.h"
Json
::
Value
get_inventory
(){
Json
::
Value
get_inventory
()
{
Json
::
Value
inv
;
Json
::
Value
inv
;
// os info
...
...
This diff is collapsed.
Click to expand it.
src/linux/open_file.cpp
+
27
−
6
View file @
e0315ab5
/* Copyright (C) 2016 Centro de Computacao Cientifica e Software Livre
* Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
*
* This file is part of simmc-agent
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#include
"agent/linux/open_file.h"
int
open_file
(
std
::
string
name
,
std
::
ifstream
&
fstream
){
fstream
.
open
(
name
);
if
(
fstream
.
is_open
())
return
1
;
else
return
0
;
int
open_file
(
std
::
string
name
,
std
::
ifstream
&
fstream
)
{
fstream
.
open
(
name
);
if
(
fstream
.
is_open
())
return
1
;
else
return
0
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment