Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
c8f4081b
Commit
c8f4081b
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic clean-up. No changes in logic.
parent
6faa585f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/slurmd/get_mach_stat.c
+7
-9
7 additions, 9 deletions
src/slurmd/get_mach_stat.c
src/slurmd/get_mach_stat.h
+7
-7
7 additions, 7 deletions
src/slurmd/get_mach_stat.h
with
14 additions
and
16 deletions
src/slurmd/get_mach_stat.c
+
7
−
9
View file @
c8f4081b
...
...
@@ -8,7 +8,7 @@
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
* Written by
moe j
ette <jette1@llnl.gov>.
* Written by
Morris J
ette <jette1@llnl.gov>.
* UCRL-CODE-2002-040.
*
* This file is part of SLURM, a resource management program.
...
...
@@ -54,8 +54,6 @@
#include
"src/slurmctld/slurmctld.h"
#include
"src/slurmd/get_mach_stat.h"
char
*
get_tmp_fs_name
(
void
);
#if DEBUG_MODULE
/* main is used here for testing purposes only */
int
...
...
@@ -89,7 +87,7 @@ main(int argc, char * argv[])
* Output: procs - filled in with CPU count, "1" if error
* return code - 0 if no error, otherwise errno
*/
int
extern
int
get_procs
(
uint32_t
*
procs
)
{
int
my_proc_tally
;
...
...
@@ -113,7 +111,7 @@ get_procs(uint32_t *procs)
* Output: os_name - filled in with OS name, "UNKNOWN" if error
* return code - 0 if no error, otherwise errno
*/
int
extern
int
get_os_name
(
char
*
os_name
)
{
int
error_code
;
...
...
@@ -146,7 +144,7 @@ get_os_name(char *os_name)
* Output: node_name - filled in with node name
* return code - 0 if no error, otherwise errno
*/
int
extern
int
get_mach_name
(
char
*
node_name
)
{
int
error_code
;
...
...
@@ -165,7 +163,7 @@ get_mach_name(char *node_name)
* Output: real_memory - the Real Memory size in MB, "1" if error
* return code - 0 if no error, otherwise errno
*/
int
extern
int
get_memory
(
uint32_t
*
real_memory
)
{
long
pages
;
...
...
@@ -198,7 +196,7 @@ get_memory(uint32_t *real_memory)
* Output: procs - filled in with CPU speed, "1.0" if error
* return code - 0 if no error, otherwise errno
*/
int
extern
int
get_speed
(
float
*
speed
)
{
char
buffer
[
128
];
...
...
@@ -239,7 +237,7 @@ get_speed(float *speed)
* Output: tmp_disk - filled in with disk space size in MB, zero if error
* return code - 0 if no error, otherwise errno
*/
int
extern
int
get_tmp_disk
(
uint32_t
*
tmp_disk
,
char
*
tmp_fs
)
{
struct
statfs
stat_buf
;
...
...
This diff is collapsed.
Click to expand it.
src/slurmd/get_mach_stat.h
+
7
−
7
View file @
c8f4081b
...
...
@@ -3,7 +3,7 @@
*****************************************************************************
* Copyright (C) 2002 The Regents of the University of California.
* Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
* Written by Mo
e
Jette <jette1@llnl.gov> et. al.
* Written by Mo
rris
Jette <jette1@llnl.gov> et. al.
* UCRL-CODE-2002-040.
*
* This file is part of SLURM, a resource management program.
...
...
@@ -40,17 +40,17 @@
# include <inttypes.h>
#endif
/* HAVE_CONFIG_H */
int
get_procs
(
uint32_t
*
procs
);
int
get_mach_name
(
char
*
node_name
);
int
get_memory
(
uint32_t
*
real_memory
);
int
get_tmp_disk
(
uint32_t
*
tmp_disk
,
char
*
tmp_fs
);
extern
int
get_procs
(
uint32_t
*
procs
);
extern
int
get_mach_name
(
char
*
node_name
);
extern
int
get_memory
(
uint32_t
*
real_memory
);
extern
int
get_tmp_disk
(
uint32_t
*
tmp_disk
,
char
*
tmp_fs
);
#ifdef USE_OS_NAME
int
get_os_name
(
char
*
os_name
);
extern
int
get_os_name
(
char
*
os_name
);
#endif
#ifdef USE_CPU_SPEED
int
get_speed
(
float
*
speed
);
extern
int
get_speed
(
float
*
speed
);
#endif
#endif
/* _GET_MACH_STAT_H */
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