Changeset 4655:451c6ac12baa


Ignore:
Timestamp:
05/11/07 14:08:09 (6 years ago)
Author:
Yi Qiang <yqiang@…>
Branch:
default
Message:

convert to float first.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/dsage/misc/hostinfo.py

    r4654 r4655  
    185185                if s != ['\n']: 
    186186                    if s[0].strip() == 'cpu MHz': 
    187                         host_info[s[0].strip()] = int(s[1].strip()) 
     187                        host_info[s[0].strip()] = int(float(s[1].strip())) 
    188188                    else: 
    189189                        host_info[s[0].strip()] = s[1].strip() 
Note: See TracChangeset for help on using the changeset viewer.