Commits

Denis Khabarov committed 0a054d9

modified: check_nvidia_temp.py
Исправлены типы для аргументов

Comments (0)

Files changed (1)

check_nvidia_temp.py

 Licence: GNU General Public License version 3
 You can download full text of the license on http://www.gnu.org/licenses/gpl-3.0.txt
 ''',formatter_class=argparse.RawDescriptionHelpFormatter)
-cliparser.add_argument("--warning",metavar="VALUE",help="warning temperature",required=True)
-cliparser.add_argument("--critical",metavar="VALUE",help="critical temperature",required=True)
+cliparser.add_argument("--warning",metavar="VALUE",help="warning temperature",required=True,type=int)
+cliparser.add_argument("--critical",metavar="VALUE",help="critical temperature",required=True,type=int)
 cliparser.add_argument('--nvclockpath',metavar='VALUE',help='path to nvclock (default: /usr/bin/nvclock)',default='/usr/bin/nvclock')
 cliargs = cliparser.parse_args()